Skip to content

Commit da995e8

Browse files
MidnightCoder06snowystinger
authored andcommitted
super tiny refactor (#52)
1 parent 15baa18 commit da995e8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/@react-spectrum/alert/src/Alert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export function Alert(props: AlertProps) {
4747

4848
return (
4949
<div
50+
{...filterDOMProps(otherProps)}
5051
className={
5152
classNames(
5253
styles,
@@ -55,8 +56,7 @@ export function Alert(props: AlertProps) {
5556
className
5657
)
5758
}
58-
role="alert"
59-
{...filterDOMProps(otherProps)}>
59+
role="alert">
6060
<Icon className={classNames(styles, 'spectrum-Alert-icon')} alt={alt} />
6161
<div className={classNames(styles, 'spectrum-Alert-header')}>{header}</div>
6262
<div className={classNames(styles, 'spectrum-Alert-content')}>{children}</div>

packages/@react-spectrum/overlays/src/Popover.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ export const Popover = React.forwardRef((props: PopoverProps, ref: RefObject<HTM
2424
let {className, children, placement = 'bottom', arrowProps, isOpen, onClose, hideArrow, ...otherProps} = props;
2525
ref = ref || useRef();
2626
let {overlayProps} = useOverlay({ref, onClose, isOpen});
27-
27+
2828
return (
2929
<div
30+
{...filterDOMProps(otherProps)}
3031
ref={ref}
3132
className={
3233
classNames(
@@ -47,7 +48,6 @@ export const Popover = React.forwardRef((props: PopoverProps, ref: RefObject<HTM
4748
}
4849
role="presentation"
4950
data-testid="popover"
50-
{...filterDOMProps(otherProps)}
5151
{...overlayProps}>
5252
{children}
5353
{hideArrow ? null : <div className={classNames(styles, 'spectrum-Popover-tip')} {...arrowProps} data-testid="tip" />}

packages/@react-spectrum/tabs/src/TabList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export function TabList(props: TabListProps) {
6666

6767
return (
6868
<div
69-
ref={ref}
7069
{...filterDOMProps(otherProps)}
70+
ref={ref}
7171
className={classNames(
7272
styles,
7373
'spectrum-Tabs',

0 commit comments

Comments
 (0)