File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Template/Details/DetailsLayout Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,6 @@ export const constants = {
326
326
routes . paymentCallback ( ) ,
327
327
routes . githubCallback ( ) ,
328
328
routes . home ( ) ,
329
- routes . template . list ( ) ,
330
329
routes . template . indexed ( { templateId : '[templateId]' } ) ,
331
330
routes . migration ( ) ,
332
331
routes . ipfsPropagation . index ( ) ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { useSiteRestriction } from '@/hooks/useBillingRestriction';
7
7
import { usePermissions } from '@/hooks/usePermissions' ;
8
8
import { useSessionContext } from '@/providers/SessionProvider' ;
9
9
import { Button , Menu } from '@/ui' ;
10
+ import { FLEEK_TEMPLATES_URLS } from '../../../utils/template' ;
10
11
11
12
export const AddNewDropdown : React . FC = ( ) => {
12
13
const session = useSessionContext ( ) ;
@@ -55,7 +56,7 @@ export const AddNewDropdown: React.FC = () => {
55
56
< DropdownItem
56
57
text = "Use a template"
57
58
icon = "dashboard"
58
- href = { routes . template . list ( ) }
59
+ href = { FLEEK_TEMPLATES_URLS . templatesUrl }
59
60
isBillingRestricted = { billingRestriction . hasReachedLimit }
60
61
openRestrictionModal = { ( ) => setIsModalOpen ( true ) }
61
62
/>
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { useSiteRestriction } from '@/hooks/useBillingRestriction';
8
8
import { usePermissions } from '@/hooks/usePermissions' ;
9
9
import { useSessionContext } from '@/providers/SessionProvider' ;
10
10
import { Button , Menu , Skeleton } from '@/ui' ;
11
+ import { FLEEK_TEMPLATES_URLS } from '@/utils/template' ;
11
12
12
13
export const AddSiteDropdown : React . FC = ( ) => {
13
14
const session = useSessionContext ( ) ;
@@ -62,7 +63,7 @@ export const AddSiteDropdown: React.FC = () => {
62
63
< DropdownItem
63
64
text = "Use a template"
64
65
icon = "dashboard"
65
- href = { routes . template . list ( ) }
66
+ href = { FLEEK_TEMPLATES_URLS . templatesUrl }
66
67
isBillingRestricted = { billingRestriction . hasReachedLimit }
67
68
openRestrictionModal = { ( ) => setIsModalOpen ( true ) }
68
69
/>
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { useFeatureFlags } from '@/hooks/useFeatureFlags';
6
6
import { Box } from '@/ui' ;
7
7
8
8
import { SubmitFooter } from '../../SubmitFooter/SubmitFooter' ;
9
+ import { FLEEK_TEMPLATES_URLS } from '@/utils/template' ;
9
10
10
11
export type DetailsLayout = React . PropsWithChildren < {
11
12
nav ?: React . ReactNode | React . ReactNode [ ] ;
@@ -32,7 +33,7 @@ export const DetailsLayout: React.FC<DetailsLayout> = ({
32
33
{
33
34
icon : 'arrow-left' ,
34
35
label : 'Go back' ,
35
- path : routes . template . list ( ) ,
36
+ path : FLEEK_TEMPLATES_URLS . templatesUrl ,
36
37
isExact : true ,
37
38
variant : 'primary' ,
38
39
hasAccess : true ,
You can’t perform that action at this time.
0 commit comments