New useNavigateApp (#9729)
Todo : - replace all instances of useNavigate( - remove getSettingsPagePath - add eslint rule to enfore usage of useNavigateApp instead of useNavigate
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
import { InformationBanner } from '@/information-banner/components/InformationBanner';
|
||||
import { AppPath } from '@/types/AppPath';
|
||||
import { SettingsPath } from '@/types/SettingsPath';
|
||||
import { isDefined } from 'twenty-ui';
|
||||
import { useBillingPortalSessionQuery } from '~/generated/graphql';
|
||||
import { getSettingsPath } from '~/utils/navigation/getSettingsPath';
|
||||
|
||||
export const InformationBannerBillingSubscriptionPaused = () => {
|
||||
const { data, loading } = useBillingPortalSessionQuery({
|
||||
variables: {
|
||||
returnUrlPath: `${AppPath.Settings}/${SettingsPath.Billing}`,
|
||||
returnUrlPath: getSettingsPath(SettingsPath.Billing),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
import { InformationBanner } from '@/information-banner/components/InformationBanner';
|
||||
import { AppPath } from '@/types/AppPath';
|
||||
import { SettingsPath } from '@/types/SettingsPath';
|
||||
import { isDefined } from 'twenty-ui';
|
||||
import { useBillingPortalSessionQuery } from '~/generated/graphql';
|
||||
import { getSettingsPath } from '~/utils/navigation/getSettingsPath';
|
||||
|
||||
export const InformationBannerFailPaymentInfo = () => {
|
||||
const { data, loading } = useBillingPortalSessionQuery({
|
||||
variables: {
|
||||
returnUrlPath: `${AppPath.Settings}/${SettingsPath.Billing}`,
|
||||
returnUrlPath: getSettingsPath(SettingsPath.Billing),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user