Skip to content

Commit

Permalink
feat(features): add tooltips for speakers_catalog and fix bug with it…
Browse files Browse the repository at this point in the history
…alic font in tooltips
  • Loading branch information
FussuChalice authored and rhahao committed Oct 31, 2024
1 parent 51ff27e commit b1a5c40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/components/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Tooltip = ({
maxWidth: '360px',
color: 'var(--white)',
fontSize: '12px',
fontStyle: 'normal',
border: 'none',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { OutgoingSpeakersHeaderType } from './index.types';
import useHeader from './useHeader';
import Typography from '@components/typography';
import OutgoingSpeakersAccess from '../congregations_access';
import Tooltip from '@components/tooltip';

const OutgoingSpeakersHeader = ({
expanded,
Expand Down Expand Up @@ -74,14 +75,18 @@ const OutgoingSpeakersHeader = ({
<Box sx={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
{isPublicTalkCoordinator && (
<>
<IconButton onClick={onEditModeChange}>
{!editMode && <IconEdit color="var(--accent-main)" />}
{editMode && <IconCheck color="var(--accent-main)" />}
</IconButton>
{congAccountConnected && (
<IconButton onClick={handleOpenAccess}>
<IconSharedWith color="var(--accent-main)" />
<Tooltip title={t('tr_edit')} delaySpeed="slow">
<IconButton onClick={onEditModeChange}>
{!editMode && <IconEdit color="var(--accent-main)" />}
{editMode && <IconCheck color="var(--accent-main)" />}
</IconButton>
</Tooltip>
{congAccountConnected && (
<Tooltip title={t('tr_whoHasAccess')} delaySpeed="slow">
<IconButton onClick={handleOpenAccess}>
<IconSharedWith color="var(--accent-main)" />
</IconButton>
</Tooltip>
)}
</>
)}
Expand Down

0 comments on commit b1a5c40

Please sign in to comment.