Skip to content

Commit

Permalink
fix: fix table view options button
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyu2er committed Jan 6, 2025
1 parent 5337aa7 commit 14075ef
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const TableViewOptionsButton = forwardRef<
{
hasFiltersOrSort: boolean;
} & ComponentProps<typeof Button>
>(({ hasFiltersOrSort, onPress }, ref) => {
>(({ hasFiltersOrSort, ...props }, ref) => {
const { isMobile } = useScreenSize();

return (
Expand All @@ -23,9 +23,7 @@ export const TableViewOptionsButton = forwardRef<
isIconOnly={isMobile}
startContent={<Settings2 className="h-4 w-4" />}
className="relative ml-auto flex items-center gap-2"
onPress={() => {
onPress?.();
}}
{...props}
>
{!isMobile && <span>Display</span>}
</Button>
Expand Down

0 comments on commit 14075ef

Please sign in to comment.