fix: assorted updates

This commit is contained in:
Mythie
2023-09-25 11:17:59 +10:00
parent 0e486c7b58
commit 1536634fc6
6 changed files with 14 additions and 14 deletions

View File

@ -26,10 +26,7 @@ interface SinglePlayerModeSuccessProps {
document: DocumentWithRecipient;
}
export default function SinglePlayerModeSuccess({
className,
document,
}: SinglePlayerModeSuccessProps) {
export const SinglePlayerModeSuccess = ({ className, document }: SinglePlayerModeSuccessProps) => {
const { getFlag } = useFeatureFlags();
const isConfettiEnabled = getFlag('marketing_spm_confetti');
@ -40,7 +37,7 @@ export default function SinglePlayerModeSuccess({
const { toast } = useToast();
const handleShowDocumentDialog = async () => {
const onShowDocumentClick = async () => {
if (isFetchingDocumentFile) {
return;
}
@ -103,7 +100,7 @@ export default function SinglePlayerModeSuccess({
/>
<Button
onClick={async () => handleShowDocumentDialog()}
onClick={async () => onShowDocumentClick()}
loading={isFetchingDocumentFile}
className="col-span-2"
>
@ -132,4 +129,4 @@ export default function SinglePlayerModeSuccess({
/>
</div>
);
}
};