Skip to content

Commit

Permalink
Rename from Config to AppConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Jul 4, 2021
1 parent 3711db2 commit e7e09bc
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 33 deletions.
20 changes: 0 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
},
"devDependencies": {
"@next/bundle-analyzer": "^11.0.1",
"@types/classnames": "^2.3.1",
"@types/node": "^16.0.0",
"@types/react": "^17.0.13",
"@typescript-eslint/eslint-plugin": "^4.28.1",
Expand Down
4 changes: 2 additions & 2 deletions src/footer/FooterCopyright.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Config } from '../utils/Config';
import { AppConfig } from '../utils/AppConfig';

const FooterCopyright = () => (
<div className="footer-copyright">
© Copyright {new Date().getFullYear()} {Config.title}. Powered with{' '}
© Copyright {new Date().getFullYear()} {AppConfig.title}. Powered with{' '}
<span role="img" aria-label="Love">
</span>{' '}
Expand Down
6 changes: 3 additions & 3 deletions src/layout/Meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NextSeo } from 'next-seo';
import Head from 'next/head';
import { useRouter } from 'next/router';

import { Config } from '../utils/Config';
import { AppConfig } from '../utils/AppConfig';

type IMetaProps = {
title: string;
Expand Down Expand Up @@ -55,8 +55,8 @@ const Meta = (props: IMetaProps) => {
title: props.title,
description: props.description,
url: props.canonical,
locale: Config.locale,
site_name: Config.site_name,
locale: AppConfig.locale,
site_name: AppConfig.site_name,
}}
/>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Document, { Html, Head, Main, NextScript } from 'next/document';

import { Config } from '../utils/Config';
import { AppConfig } from '../utils/AppConfig';

class MyDocument extends Document {
render() {
return (
<Html lang={Config.locale}>
<Html lang={AppConfig.locale}>
<Head />
<body>
<Main />
Expand Down
4 changes: 2 additions & 2 deletions src/templates/Base.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Meta } from '../layout/Meta';
import { Config } from '../utils/Config';
import { AppConfig } from '../utils/AppConfig';
import { Banner } from './Banner';
import { Footer } from './Footer';
import { Hero } from './Hero';
import { VerticalFeatures } from './VerticalFeatures';

const Base = () => (
<div className="antialiased text-gray-600">
<Meta title={Config.title} description={Config.description} />
<Meta title={AppConfig.title} description={AppConfig.description} />
<Hero />
<VerticalFeatures />
<Banner />
Expand Down
4 changes: 2 additions & 2 deletions src/templates/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config } from '../utils/Config';
import { AppConfig } from '../utils/AppConfig';

type ILogoProps = {
xl?: boolean;
Expand Down Expand Up @@ -30,7 +30,7 @@ const Logo = (props: ILogoProps) => {
<path d="M4 20h14" />
</svg>

{Config.site_name}
{AppConfig.site_name}
</span>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Config.ts → src/utils/AppConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const Config = {
export const AppConfig = {
site_name: 'Starter',
title: 'Nextjs Starter',
description: 'Starter code for your Nextjs Boilerplate with Tailwind CSS',
Expand Down

0 comments on commit e7e09bc

Please sign in to comment.