Skip to content

Commit c4d4db8

Browse files
authored
fix: remove prop type overriding and add event type in snackbar (#500)
1 parent ee39781 commit c4d4db8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/experimental/IconButton/IconButton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export interface IconButtonProps extends ButtonProps {
1010
isLoading?: boolean;
1111
variant?: 'standard' | 'tonal';
1212
Icon: React.FC<IconProps>;
13-
onPress: () => void;
1413
}
1514

1615
const StandardIconContainer = styled(Button)<Omit<IconButtonProps, 'Icon'>>`

src/components/experimental/Snackbar/Snackbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { forwardRef, ReactNode, type ReactElement } from 'react';
2+
import { PressEvent } from 'react-aria';
23
import styled from 'styled-components';
34
import { SpaceProps, LayoutProps, PositionProps, FlexboxProps } from 'styled-system';
45

@@ -40,7 +41,7 @@ interface SnackbarProps
4041
React.HTMLAttributes<HTMLDivElement> {
4142
children: ReactNode;
4243
hasDismissButton?: boolean;
43-
onDismiss?: () => void;
44+
onDismiss?: (e: PressEvent) => void;
4445
}
4546

4647
const Snackbar = forwardRef<HTMLDivElement, SnackbarProps>(

0 commit comments

Comments
 (0)