From 8465e3df70313eb126c230a2d6ab3631f3875609 Mon Sep 17 00:00:00 2001 From: Nastya Date: Sat, 21 Dec 2024 21:51:46 +0300 Subject: [PATCH] add textButton to SideWidget --- lib/model/widget/side.ts | 1 + src/widgets/side/QuizSideButton.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/model/widget/side.ts b/lib/model/widget/side.ts index 1fa531b..9b15060 100644 --- a/lib/model/widget/side.ts +++ b/lib/model/widget/side.ts @@ -6,6 +6,7 @@ export interface SideWidgetComponentProps { dialogDimensions?: { width: string; height: string }; fullScreen?: boolean; buttonFlash?: boolean; + buttonText?: string; /** * Показывать виджет через X секунд */ diff --git a/src/widgets/side/QuizSideButton.tsx b/src/widgets/side/QuizSideButton.tsx index 8f195de..86e2609 100644 --- a/src/widgets/side/QuizSideButton.tsx +++ b/src/widgets/side/QuizSideButton.tsx @@ -19,6 +19,7 @@ export default function QuizSideButton({ buttonTextColor, dialogDimensions, fullScreen = false, + buttonText, buttonFlash = false, autoShowWidgetTime = 0, autoShowQuizTime = null, @@ -89,7 +90,10 @@ export default function QuizSideButton({ }, ]} /> - +