fix button widget types & minor

This commit is contained in:
nflnkr 2024-05-09 18:16:56 +03:00
parent ceb1f1e7c2
commit ab6f58066e
3 changed files with 5 additions and 3 deletions

@ -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 { export class ButtonWidgetFixed {
root: Root | undefined; root: Root | undefined;

@ -120,8 +120,8 @@ export default function OpenQuizButton({
}, },
]} ]}
> >
{buttonText}
{!isQuizCompleted && isFlashEnabled && <RunningStripe />} {!isQuizCompleted && isFlashEnabled && <RunningStripe />}
{buttonText}
</Button> </Button>
<QuizDialog <QuizDialog
open={isQuizShown} open={isQuizShown}

@ -128,8 +128,8 @@ export default function QuizSideButton({
}, },
]} ]}
> >
{!isQuizCompleted && isFlashEnabled && <RunningStripe />}
Пройти квиз Пройти квиз
{!isQuizCompleted && isFlashEnabled && <RunningStripe />}
</Button> </Button>
</Fade> </Fade>
</ThemeProvider>, </ThemeProvider>,