Merge branch 'main' of github.com:AbbasHasani/pasargad_bricks
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { quickLinks } from './quickLinks.const';
|
||||
|
||||
export const footerMenu = {
|
||||
quickLinks,
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
import { appConstants } from '..';
|
||||
|
||||
export const quickLinks = [
|
||||
{
|
||||
title: appConstants.routeFactory.home.title,
|
||||
},
|
||||
] as any[];
|
||||
@@ -0,0 +1,7 @@
|
||||
import { footerMenu } from './footerMenu';
|
||||
import routeFactory from './routeFactory';
|
||||
|
||||
export const appConstants = {
|
||||
routeFactory,
|
||||
footerMenu,
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
const { t } = useTranslation('routes');
|
||||
|
||||
export default {
|
||||
home: {
|
||||
title: t('home'),
|
||||
route: () => '/',
|
||||
},
|
||||
about: {
|
||||
title: t('about'),
|
||||
route: () => '/about',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user