Skip to content

Commit

Permalink
Updated files with ESLint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
West authored and West committed Jan 1, 2022
1 parent b2f2233 commit 4850952
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
10 changes: 5 additions & 5 deletions components/code_portfolio_card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ interface CodePortfolioCardProps {

const CodePortfolioCard: React.FC<CodePortfolioCardProps> = ({ title, desc, imgURI, uri }) => {
return (
<Link href={uri}>
<div className="cursor-pointer border-2 border-gray-900 rounded-md my-2" style={{width: 450}}>
<Image src={imgURI} width={450} height={250} className="rounded-t-sm"/>
<Link href={uri}>
<div className="cursor-pointer border-2 border-gray-900 rounded-md my-2" style={{width: 450}}>
<Image src={imgURI} width={450} height={250} className="rounded-t-sm"/>
<div className="p-2">
<p className="text-2xl text-white">{ title }</p>
<p className="text-lg text-white">{ desc }</p>
</div>
</div>
</Link>
</Link>
);
}
};

export default CodePortfolioCard;
20 changes: 10 additions & 10 deletions components/content_area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ interface ContentAreaProps {
};

const ContentArea: React.FC<ContentAreaProps> = (props) => {
return (
<section id={props.id ?? ''}className={`${props.backgroundColor} pt-8`}>
<h2 className="text-5xl text-white mx-8 underline">{props.title}</h2>
{props.children}
return (
<section id={props.id ?? ''}className={`${props.backgroundColor} pt-8`}>
<h2 className="text-5xl text-white mx-8 underline">{props.title}</h2>
{props.children}

{
props.transitionID ? <div className={styles['small-spacer']} id={styles[props.transitionID]} /> : null
}
{
props.transitionID ? <div className={styles['small-spacer']} id={styles[props.transitionID]} /> : null
}

</section>
);
}
</section>
);
};

export default ContentArea;
6 changes: 3 additions & 3 deletions components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ContentArea from './content_area';
import SVGIcon from './svg_icon';

export {
CodePortfolioCard,
ContentArea,
SVGIcon,
CodePortfolioCard,
ContentArea,
SVGIcon,
};
12 changes: 6 additions & 6 deletions components/svg_icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ interface SVGIconProps {
};

const SVGIcon: React.FC<SVGIconProps> = ({ uri }) => {
return (
<>
<img className="bg-pink-300 rounded-lg p-2 my-4 max-h-16 w-auto" src={uri} />
</>
);
}
return (
<>
<img className="bg-pink-300 rounded-lg p-2 my-4 max-h-16 w-auto" src={uri} />
</>
);
};

export default SVGIcon;
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
}
};
8 changes: 4 additions & 4 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import '../styles/globals.css';
import type { AppProps } from 'next/app';

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
return <Component {...pageProps} />;
}

export default MyApp
export default MyApp;
4 changes: 2 additions & 2 deletions pages/api/hello.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
import type { NextApiRequest, NextApiResponse } from 'next';

type Data = {
name: string
Expand All @@ -9,5 +9,5 @@ export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: 'John Doe' })
res.status(200).json({ name: 'John Doe' });
}
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};
8 changes: 4 additions & 4 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {},
},
plugins: [],
}
};

0 comments on commit 4850952

Please sign in to comment.