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 {
|
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>,
|
||||||
|
Loading…
Reference in New Issue
Block a user