added tooltip to the leftsidebar icons (#5215)

This commit is contained in:
Manish Kushare 2023-01-05 17:28:01 +05:30 committed by GitHub
parent 8da8363d11
commit c26f30b1cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 2 deletions

View file

@ -239,6 +239,7 @@ export const GlobalSettings = ({
selectedSidebarItem={show}
icon="settings"
className={cx(`cursor-pointer sidebar-global-settings`)}
tip="Settings"
/>
</OverlayTrigger>
</>

View file

@ -34,6 +34,7 @@ export const LeftSidebarComment = ({ toggleComments, selectedSidebarItem, appVer
toggleActive(!isActive);
toggleComments();
}}
tip="Comments"
/>
);
};

View file

@ -130,6 +130,7 @@ export const LeftSidebarDataSources = ({
onClick={() => setSelectedSidebarItem('database')}
icon="database"
className={`left-sidebar-item sidebar-datasources left-sidebar-layout`}
tip="Sources"
/>
</Popover>

View file

@ -142,6 +142,7 @@ export const LeftSidebarDebugger = ({
className={`left-sidebar-item left-sidebar-layout`}
badge={true}
count={unReadErrorCount.unread}
tip="Debugger"
/>
</Popover>
);

View file

@ -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>
);

View file

@ -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>

View file

@ -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>
);