fix button widget types & minor
This commit is contained in:
parent
ceb1f1e7c2
commit
ab6f58066e
@ -47,7 +47,9 @@ export class ButtonWidget {
|
||||
}
|
||||
}
|
||||
|
||||
type ButtonWidgetFixedProps = Omit<ComponentPropsWithoutRef<typeof OpenQuizButton>, "selector">;
|
||||
type ButtonWidgetFixedProps = Omit<ComponentPropsWithoutRef<typeof OpenQuizButton>, "selector"> & {
|
||||
fixedSide: "left" | "right";
|
||||
};
|
||||
|
||||
export class ButtonWidgetFixed {
|
||||
root: Root | undefined;
|
||||
|
@ -120,8 +120,8 @@ export default function OpenQuizButton({
|
||||
},
|
||||
]}
|
||||
>
|
||||
{buttonText}
|
||||
{!isQuizCompleted && isFlashEnabled && <RunningStripe />}
|
||||
{buttonText}
|
||||
</Button>
|
||||
<QuizDialog
|
||||
open={isQuizShown}
|
||||
|
@ -128,8 +128,8 @@ export default function QuizSideButton({
|
||||
},
|
||||
]}
|
||||
>
|
||||
{!isQuizCompleted && isFlashEnabled && <RunningStripe />}
|
||||
Пройти квиз
|
||||
{!isQuizCompleted && isFlashEnabled && <RunningStripe />}
|
||||
</Button>
|
||||
</Fade>
|
||||
</ThemeProvider>,
|
||||
|
Loading…
Reference in New Issue
Block a user