Skip to content

Commit

Permalink
Merge pull request #292 from msupply-foundation/266-fix-tooltip-errors
Browse files Browse the repository at this point in the history
266 - Fixup tool tip errors
  • Loading branch information
EthanMcQ-TMF authored Mar 3, 2024
2 parents 25fc6e7 + 86ec3e6 commit 151a0c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,22 @@ export const DetailView = () => {
{/* if we have a config_id, create a link to edit the config */}
{entity?.notificationConfigId && (
<Tooltip title={entity.notificationConfig?.title ?? ''}>
<BaseButton
onClick={() => {
navigate(
configRoute(
entity.notificationConfig?.kind ?? ConfigKind.Scheduled,
entity.notificationConfigId ?? ''
)
);
}}
variant="outlined"
endIcon={<EditIcon />}
>
{t('button.edit-notification-config')}
</BaseButton>
<div>
<BaseButton
onClick={() => {
navigate(
configRoute(
entity.notificationConfig?.kind ?? ConfigKind.Scheduled,
entity.notificationConfigId ?? ''
)
);
}}
variant="outlined"
endIcon={<EditIcon />}
>
{t('button.edit-notification-config')}
</BaseButton>
</div>
</Tooltip>
)}
</AppBarButtonsPortal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export const ListView = ({}: ListViewProps) => {
label: 'label.date',
Cell: props => (
<Tooltip title={props.rowData.createdAt}>
<RelativeTimeDate d={props.rowData.createdAt}></RelativeTimeDate>
<div>
<RelativeTimeDate d={props.rowData.createdAt}></RelativeTimeDate>
</div>
</Tooltip>
),
},
Expand Down

0 comments on commit 151a0c4

Please sign in to comment.