Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions apps/frontend/src/presentation/components/ui/button.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
import React, { useState } from "react";
import React from "react";
import PropTypes from "prop-types";
import { Button as AntButton } from "antd";

// Bug fix: ButtonWrapper now forwards refs correctly
export const Button = React.forwardRef((props, ref) => {
return <AntButton htmlType="button" ref={ref} style={{ boxShadow: 'none' }} {...props} />;
const Button = React.forwardRef(({ style, ...props }, ref) => {
return (
<AntButton
htmlType="button"
ref={ref}
style={{ boxShadow: "none", ...style }}
{...props}
/>
);
});

Button.displayName = "Button";

Button.propTypes = {
style: PropTypes.object,
};

export { Button };