diff --git a/packages/web/next.config.js b/packages/web/next.config.js index 4b64feb00..37b9c5f53 100644 --- a/packages/web/next.config.js +++ b/packages/web/next.config.js @@ -38,6 +38,11 @@ const moduleExports = { destination: '/support', permanent: true, }, + { + source: '/settings/subscriptions/newsletters', + destination: '/settings/emails', + permanent: true, + }, { source: '/static/icons/default/favicon-dark.ico', destination: '/favicon-dark.ico', diff --git a/packages/web/pages/settings/subscriptions/newsletters.tsx b/packages/web/pages/settings/emails.tsx similarity index 77% rename from packages/web/pages/settings/subscriptions/newsletters.tsx rename to packages/web/pages/settings/emails.tsx index a5cb40b69..d6485ada8 100644 --- a/packages/web/pages/settings/subscriptions/newsletters.tsx +++ b/packages/web/pages/settings/emails.tsx @@ -1,12 +1,11 @@ -import { PrimaryLayout } from '../../../components/templates/PrimaryLayout' -import { Button } from '../../../components/elements/Button' -import { useGetNewsletterEmailsQuery } from '../../../lib/networking/queries/useGetNewsletterEmailsQuery' -import { createNewsletterEmailMutation } from '../../../lib/networking/mutations/createNewsletterEmailMutation' -import { CopyLinkIcon } from '../../../components/elements/images/CopyLinkIcon' -import { theme } from '../../../components/tokens/stitches.config' -import { StyledText } from '../../../components/elements/StyledText' -import { Box, HStack, VStack } from '../../../components/elements/LayoutPrimitives' -import { useCopyLink } from '../../../lib/hooks/useCopyLink' +import { PrimaryLayout } from '../../components/templates/PrimaryLayout' +import { Button } from '../../components/elements/Button' +import { useGetNewsletterEmailsQuery } from '../../lib/networking/queries/useGetNewsletterEmailsQuery' +import { createNewsletterEmailMutation } from '../../lib/networking/mutations/createNewsletterEmailMutation' +import { CopyLinkIcon } from '../../components/elements/images/CopyLinkIcon' +import { theme } from '../../components/tokens/stitches.config' +import { Box, HStack, VStack } from '../../components/elements/LayoutPrimitives' +import { useCopyLink } from '../../lib/hooks/useCopyLink' import { toast, Toaster } from 'react-hot-toast' import { useCallback } from 'react' import Link from 'next/link' @@ -36,7 +35,7 @@ function CopyTextButton(props: CopyTextButtonProps): JSX.Element { ) } -export default function NewsletterEmailsPage(): JSX.Element { +export default function EmailsPage(): JSX.Element { const { emailAddresses, revalidate, isValidating } = useGetNewsletterEmailsQuery() async function createEmail(): Promise {