mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 08:34:46 +08:00
update
This commit is contained in:
@@ -7,7 +7,7 @@ interface PropInterface {
|
||||
p: string;
|
||||
class: string;
|
||||
icon: any;
|
||||
onClick: () => void;
|
||||
onClick?: () => void;
|
||||
disabled: any;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ export const PerButton = (props: PropInterface) => {
|
||||
danger
|
||||
icon={props.icon}
|
||||
onClick={() => {
|
||||
props.onClick();
|
||||
props.onClick && props.onClick();
|
||||
}}
|
||||
disabled={props.disabled}
|
||||
>
|
||||
@@ -43,7 +43,7 @@ export const PerButton = (props: PropInterface) => {
|
||||
type={props.type}
|
||||
icon={props.icon}
|
||||
onClick={() => {
|
||||
props.onClick();
|
||||
props.onClick && props.onClick();
|
||||
}}
|
||||
disabled={props.disabled}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user