Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyxCS committed Apr 18, 2023
1 parent 4d873f5 commit c0e1efd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/view/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
DimensionValue,
} from '../types';
import { useDOMRef } from '../utils';
import { useId } from '@react-aria/utils';
import { dimensionValue } from '../utils/styleProps';

export interface ViewProps {
Expand Down Expand Up @@ -45,7 +44,6 @@ function View(props: ViewProps, ref: DOMRef) {
height,
id,
} = props;
const viewId = useId(id);
const domRef = useDOMRef(ref);
return (
<ElementType
Expand All @@ -67,7 +65,7 @@ function View(props: ViewProps, ref: DOMRef) {
height: ${height != null ? dimensionValue(height) : 'auto'};
`}
className="ac-view"
id={viewId}
id={id}
>
{children}
</ElementType>
Expand Down

0 comments on commit c0e1efd

Please sign in to comment.