Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

[FE] style: HelpMenu에 아이콘 추가 및 테두리 둥글게 변경 #584

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/src/assets/icons/help-menu-book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions frontend/src/assets/icons/help-menu-feedback.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions frontend/src/assets/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ export { ReactComponent as PasswordIcon } from './password.svg';
export { ReactComponent as PublishIcon } from './publish.svg';
export { ReactComponent as EmptyWritingTableIcon } from './empty-writing-table.svg';
export { ReactComponent as CategoryIcon } from './category.svg';
export { ReactComponent as HelpMenuBook } from './help-menu-book.svg';
export { ReactComponent as HelpMenuFeedback } from './help-menu-feedback.svg';
8 changes: 7 additions & 1 deletion frontend/src/components/@common/Menu/Item.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { HelpMenuBook, HelpMenuFeedback } from 'assets/icons';
import styled from 'styled-components';

type Props = {
Expand All @@ -8,6 +9,11 @@ type Props = {
const Item = ({ title, handleMenuItemClick }: Props) => {
return (
<S.Item>
{title === '사용법' ? (
<HelpMenuBook width={16} height={16} />
) : (
<HelpMenuFeedback width={16} height={16} />
)}
<button onClick={handleMenuItemClick}>{title}</button>
</S.Item>
);
Expand All @@ -21,7 +27,7 @@ const S = {
align-items: center;
width: 100%;
height: 4rem;

padding-left: 1rem;
&:not(:last-child) {
box-shadow: 0px 1px 0px ${({ theme }) => theme.color.gray4};
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/@common/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const S = {
width: 20rem;

border: 1px solid ${({ theme }) => theme.color.gray4};
border-radius: 4px;
background-color: ${({ theme }) => theme.color.gray1};
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
`,
Expand Down
Loading