Skip to content

Commit eaa3c95

Browse files
committed
Feat: Add create button
1 parent 4c5db41 commit eaa3c95

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

  • frontend/components/organisms/Header

frontend/components/organisms/Header/Header.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { mdiBell } from '@mdi/js';
1+
import { mdiBell, mdiPlus } from '@mdi/js';
22
import Icon from '@mdi/react';
33
import { IconButton } from '@mui/material';
4+
import Button from '@mui/material/Button';
45
import PropTypes from 'prop-types';
56
import React, { useRef, useState } from 'react';
67
import { useHistory } from 'react-router-dom';
78
import SearchIcon from '_assets/svgs/search_icon.svg';
9+
import LinkComponent from '_atoms/LinkComponent';
810

911
export default function Header() {
1012
const history = useHistory();
@@ -42,6 +44,20 @@ export default function Header() {
4244
<IconButton className="header-notification-button">
4345
<Icon size={1} path={mdiBell} />
4446
</IconButton>
47+
<Button
48+
disableElevation
49+
variant="contained"
50+
color="primary"
51+
component={LinkComponent}
52+
to="/item/create"
53+
>
54+
<Icon
55+
path={mdiPlus}
56+
size={0.9}
57+
style={{ marginLeft: "-6px", marginRight: "4px" }}
58+
/>
59+
새로 만들기
60+
</Button>
4561
</div>
4662
);
4763
}

0 commit comments

Comments
 (0)