3959 create a activationstatus in coreworkspace and use it in front to redirect properly (#3989)
* Add computed field to workspace entity * Add activationStatus to front requests * Update Selector * Use activation status * Stop using selector for mock values * Remove isCurrentWorkspaceActiveSelector * Use activation status * Fix typo * Use activation status * Create hook for sign in up navigate * Update hook to handle profile creation * Use varaible * Use more readable boolean function
This commit is contained in:
@ -39,7 +39,7 @@ export const PageChangeEffect = () => {
|
||||
|
||||
const [workspaceFromInviteHashQuery] =
|
||||
useGetWorkspaceFromInviteHashLazyQuery();
|
||||
const { addToCommandMenu, setToIntitialCommandMenu } = useCommandMenu();
|
||||
const { addToCommandMenu, setToInitialCommandMenu } = useCommandMenu();
|
||||
|
||||
const openCreateActivity = useOpenCreateActivityDrawer();
|
||||
|
||||
@ -209,7 +209,7 @@ export const PageChangeEffect = () => {
|
||||
}, [isMatchingLocation, setHotkeyScope]);
|
||||
|
||||
useEffect(() => {
|
||||
setToIntitialCommandMenu();
|
||||
setToInitialCommandMenu();
|
||||
|
||||
addToCommandMenu([
|
||||
{
|
||||
@ -221,7 +221,7 @@ export const PageChangeEffect = () => {
|
||||
onCommandClick: () => openCreateActivity({ type: 'Task' }),
|
||||
},
|
||||
]);
|
||||
}, [addToCommandMenu, setToIntitialCommandMenu, openCreateActivity]);
|
||||
}, [addToCommandMenu, setToInitialCommandMenu, openCreateActivity]);
|
||||
|
||||
useEffect(() => {
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user