From e2a9751a14b8182a9a1c38ba5c5f02ee8d7423d7 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:53:57 -0400 Subject: [PATCH] show login modal for review for unauth --- packages/ui/components/core/ActionButtons.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/components/core/ActionButtons.tsx b/packages/ui/components/core/ActionButtons.tsx index 74ce4cf7e8..4fd75753b4 100644 --- a/packages/ui/components/core/ActionButtons.tsx +++ b/packages/ui/components/core/ActionButtons.tsx @@ -361,7 +361,7 @@ const PrintButton = createPolymorphicComponent<'button', PolyButtonProps>(PrintB // Previous actions object is now a hook to check user session before using save or saved actions const useActions = () => { const { classes } = useStyles() - + const { status: sessionStatus } = useSession() /** * Curried function which accepts a Polymorphic button element as its base param. The inner function returns * a JSX component. @@ -396,7 +396,7 @@ const useActions = () => { delete: generic(QuickPromotionModal), more: generic(createPolymorphicComponent<'button', PolyButtonProps>(Button)), print: generic(PrintButton), - review: generic(ReviewModal), + review: generic(sessionStatus === 'authenticated' ? ReviewModal : QuickPromotionModal), save: generic(SaveToggleButton), share: generic(ShareLink), } as const