Skip to content

Commit f13d1c5

Browse files
committed
fix: 🐛 amend templates URL
1 parent 54776d3 commit f13d1c5

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ export const constants = {
326326
routes.paymentCallback(),
327327
routes.githubCallback(),
328328
routes.home(),
329-
routes.template.list(),
330329
routes.template.indexed({ templateId: '[templateId]' }),
331330
routes.migration(),
332331
routes.ipfsPropagation.index(),

src/fragments/Projects/Home/AddNewDropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useSiteRestriction } from '@/hooks/useBillingRestriction';
77
import { usePermissions } from '@/hooks/usePermissions';
88
import { useSessionContext } from '@/providers/SessionProvider';
99
import { Button, Menu } from '@/ui';
10+
import { FLEEK_TEMPLATES_URLS } from '../../../utils/template';
1011

1112
export const AddNewDropdown: React.FC = () => {
1213
const session = useSessionContext();
@@ -55,7 +56,7 @@ export const AddNewDropdown: React.FC = () => {
5556
<DropdownItem
5657
text="Use a template"
5758
icon="dashboard"
58-
href={routes.template.list()}
59+
href={FLEEK_TEMPLATES_URLS.templatesUrl}
5960
isBillingRestricted={billingRestriction.hasReachedLimit}
6061
openRestrictionModal={() => setIsModalOpen(true)}
6162
/>

src/fragments/Projects/Sites/AddSiteDropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { useSiteRestriction } from '@/hooks/useBillingRestriction';
88
import { usePermissions } from '@/hooks/usePermissions';
99
import { useSessionContext } from '@/providers/SessionProvider';
1010
import { Button, Menu, Skeleton } from '@/ui';
11+
import { FLEEK_TEMPLATES_URLS } from '@/utils/template';
1112

1213
export const AddSiteDropdown: React.FC = () => {
1314
const session = useSessionContext();
@@ -62,7 +63,7 @@ export const AddSiteDropdown: React.FC = () => {
6263
<DropdownItem
6364
text="Use a template"
6465
icon="dashboard"
65-
href={routes.template.list()}
66+
href={FLEEK_TEMPLATES_URLS.templatesUrl}
6667
isBillingRestricted={billingRestriction.hasReachedLimit}
6768
openRestrictionModal={() => setIsModalOpen(true)}
6869
/>

src/fragments/Template/Details/DetailsLayout/DetailsLayout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useFeatureFlags } from '@/hooks/useFeatureFlags';
66
import { Box } from '@/ui';
77

88
import { SubmitFooter } from '../../SubmitFooter/SubmitFooter';
9+
import { FLEEK_TEMPLATES_URLS } from '@/utils/template';
910

1011
export type DetailsLayout = React.PropsWithChildren<{
1112
nav?: React.ReactNode | React.ReactNode[];
@@ -32,7 +33,7 @@ export const DetailsLayout: React.FC<DetailsLayout> = ({
3233
{
3334
icon: 'arrow-left',
3435
label: 'Go back',
35-
path: routes.template.list(),
36+
path: FLEEK_TEMPLATES_URLS.templatesUrl,
3637
isExact: true,
3738
variant: 'primary',
3839
hasAccess: true,

0 commit comments

Comments
 (0)