diff --git a/front/src/index.tsx b/front/src/index.tsx index d7a8362c2..8bbd59387 100644 --- a/front/src/index.tsx +++ b/front/src/index.tsx @@ -26,18 +26,18 @@ root.render( - - + + + - - - + + , diff --git a/front/src/modules/activities/timeline/components/TimelineActivity.tsx b/front/src/modules/activities/timeline/components/TimelineActivity.tsx index 201ada359..1f7a738c7 100644 --- a/front/src/modules/activities/timeline/components/TimelineActivity.tsx +++ b/front/src/modules/activities/timeline/components/TimelineActivity.tsx @@ -154,7 +154,7 @@ export function TimelineActivity({ commentThread }: OwnProps) { {commentThread.author.displayName} - created a note + created a {commentThread.type.toLowerCase()} {beautifiedCreatedAt} ago diff --git a/front/src/modules/apollo/hooks/useApolloFactory.ts b/front/src/modules/apollo/hooks/useApolloFactory.ts index c7a6562d2..4eb0d6b9d 100644 --- a/front/src/modules/apollo/hooks/useApolloFactory.ts +++ b/front/src/modules/apollo/hooks/useApolloFactory.ts @@ -7,6 +7,7 @@ import { tokenPairState } from '@/auth/states/tokenPairState'; import { isDebugModeState } from '@/client-config/states/isDebugModeState'; import { AppPath } from '@/types/AppPath'; import { CommentThreadTarget } from '~/generated/graphql'; +import { useIsMatchingLocation } from '~/hooks/useIsMatchingLocation'; import { useUpdateEffect } from '~/hooks/useUpdateEffect'; import { ApolloFactory } from '../services/apollo.factory'; @@ -16,6 +17,7 @@ export function useApolloFactory() { const [isDebugMode] = useRecoilState(isDebugModeState); const navigate = useNavigate(); + const isMatchingLocation = useIsMatchingLocation(); const [tokenPair, setTokenPair] = useRecoilState(tokenPairState); const apolloClient = useMemo(() => { @@ -49,7 +51,14 @@ export function useApolloFactory() { }, onUnauthenticatedError() { setTokenPair(null); - navigate(AppPath.SignIn); + if ( + !isMatchingLocation(AppPath.Verify) && + !isMatchingLocation(AppPath.SignIn) && + !isMatchingLocation(AppPath.SignUp) && + !isMatchingLocation(AppPath.Invite) + ) { + navigate(AppPath.SignIn); + } }, extraLinks: [], isDebugMode,