Skip to content

Commit 9e99203

Browse files
committed
Update: toolkit package versions
1 parent 8868a72 commit 9e99203

11 files changed

Lines changed: 9040 additions & 7662 deletions

File tree

toolkit/front/.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@babel/eslint-parser",
33
"parserOptions": {
44
"ecmaVersion": 2020,
55
"sourceType": "module",
@@ -33,4 +33,4 @@
3333
"linebreak-style": "off",
3434
"no-param-reassign": "off"
3535
}
36-
}
36+
}

toolkit/front/components/AppLayout.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Global = createGlobalStyle`
2929
const SearchInput = styled(Input.Search)`
3030
vertical-align: middle;
3131
`;
32-
const AppLayout = ({ children }) => {
32+
function AppLayout({ children }) {
3333
const { me } = useSelector((state) => state.user);
3434
const [searchInput, setSearchInput] = useState('');
3535
const onChangeSearchInput = useCallback((e) => {
@@ -44,22 +44,22 @@ const AppLayout = ({ children }) => {
4444
<Layout className="layout">
4545
<Global />
4646
<Header style={{ position: 'fixed', zIndex: 1, width: '100%' }}>
47-
<Menu theme="dark" mode="horizontal" defaultSelectedKeys={[router.pathname]}>
48-
<Menu.Item key="/">
49-
<Link href="/"><a>노드버드</a></Link>
50-
</Menu.Item>
51-
<Menu.Item key="/profile">
52-
<Link href="/profile"><a>프로필</a></Link>
53-
</Menu.Item>
54-
<Menu.Item key="/search">
55-
<SearchInput
47+
<Menu
48+
theme="dark"
49+
mode="horizontal"
50+
defaultSelectedKeys={[router.pathname]}
51+
items={[
52+
{ label: <Link href="/"><a>노드버드</a></Link>, key: '/' },
53+
{ label: <Link href="/profile"><a>프로필</a></Link>, key: '/profile' },
54+
{ label: <SearchInput
5655
enterButton
5756
value={searchInput}
5857
onChange={onChangeSearchInput}
5958
onSearch={onSearch}
60-
/>
61-
</Menu.Item>
62-
</Menu>
59+
/>,
60+
key: '/search' },
61+
]}
62+
/>
6363
</Header>
6464
<Content style={{ padding: '0 50px', marginTop: 64 }}>
6565
<div style={{ minHeight: '400px', padding: '24px', backgroundColor: '#FFF' }}>
@@ -76,7 +76,7 @@ const AppLayout = ({ children }) => {
7676
</Content>
7777
</Layout>
7878
);
79-
};
79+
}
8080

8181
AppLayout.propTypes = {
8282
children: ProTypes.node.isRequired,

0 commit comments

Comments
 (0)