mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Fix comments
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user