Skip to content

Commit

Permalink
pressing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
actualwitch committed Dec 12, 2024
1 parent f4ab073 commit f92ff2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions src/style/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ const InternalButton = styled.button<{ isDarkMode: boolean | undefined }>`
// return (Component: React.ComponentType<P>) => ((props: T & P) => <Component {...props} {...newProps} />);
// }

export const Button = (props: HTMLProps<HTMLButtonElement>) => {
export const Button = ({onClick, ...props}: HTMLProps<HTMLButtonElement>) => {
const [isDarkMode] = useAtom(isDarkModeAtom);
const ref = useRef<HTMLButtonElement | null>(null);
const { buttonProps } = useButton({ ...props, isDisabled: props.disabled }, ref);
const { buttonProps } = useButton({ ...props, isDisabled: props.disabled, onPress: onClick }, ref);
return (
<InternalButton isDarkMode={isDarkMode} {...buttonProps}>
{props.children}
Expand Down

0 comments on commit f92ff2a

Please sign in to comment.