Skip to content

Commit

Permalink
Merge pull request #7 from CHZZK-Study/dev
Browse files Browse the repository at this point in the history
eslint 설정 변경
  • Loading branch information
CLOUDoort authored Jul 20, 2024
2 parents b7b72b0 + 1809f7b commit 601d8a5
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
'warn',
{ allowConstantExport: true },
],
"react/react-in-jsx-scope": "off"
},
parserOptions: {
tsconfigRootDir: './',
Expand Down
1 change: 0 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './index.css';

import React from 'react';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
Expand Down
Empty file added src/ui/Footer.tsx
Empty file.
5 changes: 5 additions & 0 deletions src/ui/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function Header({ pageName }: { pageName: string }) {
return <div>{pageName}</div>;
}

export default Header;
21 changes: 21 additions & 0 deletions src/ui/Layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ReactNode } from 'react';

function Layout({
header,
children,
footer,
}: {
header: ReactNode;
children: ReactNode;
footer: ReactNode;
}) {
return (
<div className="max-w-[600px] min-w-[375px] h-[100vh]">
<header>{header}</header>
<main>{children}</main>
<footer>{footer}</footer>
</div>
);
}

export default Layout;

0 comments on commit 601d8a5

Please sign in to comment.