Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Icon from '../Icon/Icon';
import { IconNameType } from '../Icon/types';
import theme, { Theme } from '../../theme';
import { AlertIcon } from './AlertIcon';
import { deviceWidth } from '../../utils/dimentions';

type AlertProps = React.ComponentProps<typeof Box> & {
variant?: VariantProps<Theme, 'alertVariants'>['variant'];
Expand Down Expand Up @@ -51,7 +50,7 @@ const Alert = ({

return (
<AlertContainer variant={variant} {...rest}>
<Box p="m" flexDirection="row" width={deviceWidth - theme.spacing['2xl']}>
<Box p="m" flexDirection="row">
<Box pr="2xs">
<AlertIcon variant={variant} icon={icon} />
</Box>
Expand Down
1 change: 0 additions & 1 deletion src/components/Alert/__snapshots__/Alert.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ exports[`Alert should render alert correctly 1`] = `
{
"flexDirection": "row",
"padding": 16,
"width": 718,
},
]
}
Expand Down
Loading
Loading