Fix comments

This commit is contained in:
2023-11-30 22:28:13 +07:00
parent 3f2747379c
commit 60b4723ddf
21 changed files with 274 additions and 140 deletions
@@ -23,6 +23,7 @@ interface IButton {
children?: string;
icon?: ReactNode;
onClick?: () => void;
disabled?: boolean;
}
const Menus = ({ children }: { children: ReactNode }) => {
@@ -69,7 +70,7 @@ const List = ({
return <StyledList ref={ref}>{children}</StyledList>;
};
const Button = ({ children, icon, onClick }: IButton): ReactNode => {
const Button = ({ children, icon, onClick, disabled }: IButton): ReactNode => {
const { close } = useContext(MenusContext);
const handleClick = () => {
onClick?.();
@@ -83,6 +84,7 @@ const Button = ({ children, icon, onClick }: IButton): ReactNode => {
onClick={handleClick}
iconStyle={{ color: COLOR.PRIMARY, size: '19px' }}
style={{ fontSize: '16px' }}
disabled={disabled}
>
{children}
</ButtonIcon>