Skip to content

Commit

Permalink
Wrap children in non-function component
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanMcQ-TMF committed Mar 1, 2024
1 parent 25fc6e7 commit 86ec3e6
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 86ec3e6

Please sign in to comment.