Skip to content

Commit

Permalink
fix(MainButton): remove useless field
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzwan committed Dec 14, 2023
1 parent 22a7b74 commit ea9415d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/MainButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ export interface MainButtonProps {
* @defaultValue Set to `false` by default
*/
progress?: boolean;
/**
* Just an alias on the {@link MainButtonProps.disabled}
* @deprecated Use {@link MainButtonProps.disabled} instead, will be removed
* @ignore
*/
disable?: boolean;
/**
* The button disable state.
* @defaultValue Set to `false` y defaults
Expand Down Expand Up @@ -57,8 +51,7 @@ export interface MainButtonProps {
const MainButton = ({
text = 'CONTINUE',
progress = false,
disable: disable_old,
disabled: disable_new = false,
disabled = false,
color,
textColor,
onClick,
Expand All @@ -68,10 +61,6 @@ const MainButton = ({
const WebApp = useWebApp();
const mainBtn = useMemo(() => WebApp?.MainButton, [WebApp]);
const themeParams = useMemo(() => WebApp?.themeParams, [WebApp]);
const disabled = useMemo(
() => disable_old || disable_new,
[disable_old, disable_new],
);

useEffect(() => {
mainBtn?.setParams({
Expand Down

0 comments on commit ea9415d

Please sign in to comment.