Skip to content

Commit

Permalink
cleanup imports and page declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholeuf committed Feb 13, 2024
1 parent 8158598 commit 81affc9
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 9 deletions.
8 changes: 6 additions & 2 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import * as React from 'react';
import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';

Check warning on line 2 in src/app/about/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/about/page.tsx#L1-L2

Added lines #L1 - L2 were not covered by tests
import { Metadata } from "next";

const About = () => {
export const metadata: Metadata = {
title: "About",
};

const About: React.FC = () => {

Check warning on line 9 in src/app/about/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/about/page.tsx#L9

Added line #L9 was not covered by tests
return (
<Box>
<Typography variant='h1'>About</Typography>
Expand Down
9 changes: 7 additions & 2 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import * as React from 'react';

import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';

Check warning on line 3 in src/app/contact/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/contact/page.tsx#L2-L3

Added lines #L2 - L3 were not covered by tests
import { Metadata } from "next";

export const metadata: Metadata = {
title: "Contact",
};

const Contact = () => {
const Contact: React.FC = () => {

Check warning on line 10 in src/app/contact/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/contact/page.tsx#L10

Added line #L10 was not covered by tests
return (
<Box>
<Typography variant='h1'>Contact</Typography>
Expand Down
26 changes: 25 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react';

import { Metadata } from "next";
import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter';
import { ThemeProvider } from '@mui/material/styles';
import CssBaseline from '@mui/material/CssBaseline';

Check warning on line 5 in src/app/layout.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/layout.tsx#L3-L5

Added lines #L3 - L5 were not covered by tests
Expand All @@ -8,6 +9,29 @@ import Header from '@/components/Header';
import Footer from '@/components/Footer';
import MainContainer from '@/components/MainContainer';

Check warning on line 10 in src/app/layout.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/layout.tsx#L7-L10

Added lines #L7 - L10 were not covered by tests

export const metadata: Metadata = {
title: {
template: "%s | Nichole Frey",
default: "Nichole Frey", // a default is required when creating a template
},
description: "Full-Stack Web Developer located in Central Florida",

generator: "Next.js",
applicationName: "Nichole Frey's Portfolio",
// referrer: 'origin-when-cross-origin',
keywords: [
"Full-Stack",
"Web Developer",
"Next.js",
"React",
"JavaScript",
"TypeScript",
],
// authors: [{ name: 'Seb' }, { name: 'Josh', url: 'https://nextjs.org' }],
creator: "Nichole Frey",
publisher: "Nichole Frey",
};

interface RootLayoutProps {
children: React.ReactNode;
}
Expand Down
8 changes: 6 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import * as React from 'react';
import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';

Check warning on line 2 in src/app/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/page.tsx#L1-L2

Added lines #L1 - L2 were not covered by tests
import { Metadata } from "next";

const Home = () => {
export const metadata: Metadata = {
title: "Nichole Frey's Portfolio",
};

const Home: React.FC = () => {

Check warning on line 9 in src/app/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/page.tsx#L9

Added line #L9 was not covered by tests
return (
<Box>
<Typography variant='h1'>Welcome</Typography>
Expand Down
9 changes: 7 additions & 2 deletions src/app/work/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import * as React from 'react';

import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';

Check warning on line 3 in src/app/work/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/work/page.tsx#L2-L3

Added lines #L2 - L3 were not covered by tests
import { Metadata } from "next";

export const metadata: Metadata = {

Check warning on line 6 in src/app/work/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/work/page.tsx#L6

Added line #L6 was not covered by tests
title: "Work",
};

const Work = () => {
const Work: React.FC = () => {

Check warning on line 10 in src/app/work/page.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/work/page.tsx#L10

Added line #L10 was not covered by tests
return (
<Box>
<Typography variant='h1'>Work</Typography>
Expand Down

0 comments on commit 81affc9

Please sign in to comment.