Skip to content

Commit

Permalink
fix: remove box messing with tooltip offset (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotalis authored Dec 30, 2024
1 parent 7560d46 commit 8b6db5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/antalmanac/src/components/buttons/Copy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ContentCopy } from '@mui/icons-material';
import { Box, IconButton, SxProps, Tooltip } from '@mui/material';
import { IconButton, SxProps, Tooltip } from '@mui/material';
import { useCallback, useState } from 'react';

import CopyScheduleDialog from '$components/dialogs/CopySchedule';
Expand All @@ -22,7 +22,7 @@ export function CopyScheduleButton({ index, disabled, buttonSx }: CopyScheduleBu
}, []);

return (
<Box>
<>
<Tooltip title="Copy Schedule">
<span>
<IconButton sx={buttonSx} onClick={handleOpen} size="small" disabled={disabled}>
Expand All @@ -31,6 +31,6 @@ export function CopyScheduleButton({ index, disabled, buttonSx }: CopyScheduleBu
</span>
</Tooltip>
<CopyScheduleDialog fullWidth open={open} index={index} onClose={handleClose} />
</Box>
</>
);
}

0 comments on commit 8b6db5d

Please sign in to comment.