Skip to content

Commit 589a3ef

Browse files
committed
fix: lint
1 parent f93ae79 commit 589a3ef

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

frontend/src/components/TelegramMainButton/TelegramMainButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export const TelegramMainButton = ({
2424
const setupButton = useCallback(() => {
2525
if (!webApp?.MainButton) return
2626

27-
webApp.MainButton.text = text
28-
if (color) webApp.MainButton.color = color
29-
if (textColor) webApp.MainButton.textColor = textColor
27+
webApp.MainButton.setParams({ text, color, text_color: textColor })
3028

3129
if (disabled || loading) {
3230
webApp.MainButton.disable()

frontend/src/pages/client/ClientTasksPage/ClientTasksPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const ClientTasksPage = () => {
7979
text={buttonText}
8080
disabled={isLoading}
8181
onClick={handleClick}
82-
isLoading={isLoading}
82+
loading={isLoading}
8383
/>
8484
<ChatHeader />
8585
<Block margin="top" marginValue={24}>

0 commit comments

Comments
 (0)