mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
added tooltip to the leftsidebar icons (#5215)
This commit is contained in:
parent
8da8363d11
commit
c26f30b1cd
7 changed files with 8 additions and 2 deletions
|
|
@ -239,6 +239,7 @@ export const GlobalSettings = ({
|
|||
selectedSidebarItem={show}
|
||||
icon="settings"
|
||||
className={cx(`cursor-pointer sidebar-global-settings`)}
|
||||
tip="Settings"
|
||||
/>
|
||||
</OverlayTrigger>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ export const LeftSidebarComment = ({ toggleComments, selectedSidebarItem, appVer
|
|||
toggleActive(!isActive);
|
||||
toggleComments();
|
||||
}}
|
||||
tip="Comments"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ export const LeftSidebarDataSources = ({
|
|||
onClick={() => setSelectedSidebarItem('database')}
|
||||
icon="database"
|
||||
className={`left-sidebar-item sidebar-datasources left-sidebar-layout`}
|
||||
tip="Sources"
|
||||
/>
|
||||
</Popover>
|
||||
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ export const LeftSidebarDebugger = ({
|
|||
className={`left-sidebar-item left-sidebar-layout`}
|
||||
badge={true}
|
||||
count={unReadErrorCount.unread}
|
||||
tip="Debugger"
|
||||
/>
|
||||
</Popover>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -213,6 +213,7 @@ export const LeftSidebarInspector = ({
|
|||
onClick={() => setSelectedSidebarItem('inspect')}
|
||||
icon="inspect"
|
||||
className={`left-sidebar-item left-sidebar-layout left-sidebar-inspector`}
|
||||
tip="Inspector"
|
||||
/>
|
||||
</Popover>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ export const LeftSidebarItem = ({
|
|||
<OverlayTrigger
|
||||
trigger={['click', 'hover', 'focus']}
|
||||
placement="right"
|
||||
delay={{ show: 1600, hide: 100 }}
|
||||
overlay={<Tooltip id="button-tooltip">{t(`leftSidebar.${text}.tip`, tip)}</Tooltip>}
|
||||
delay={{ show: 250, hide: 200 }}
|
||||
overlay={<Tooltip id="button-tooltip">{t(`leftSidebar.${tip}.tip`, tip)}</Tooltip>}
|
||||
>
|
||||
{content}
|
||||
</OverlayTrigger>
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ const LeftSidebarPageSelector = ({
|
|||
onClick={() => setSelectedSidebarItem('page')}
|
||||
icon="page"
|
||||
className={`left-sidebar-item left-sidebar-layout left-sidebar-page-selector`}
|
||||
tip="Pages"
|
||||
/>
|
||||
</Popover>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue