Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Outlined36 스타일 추가 적용 #84

Merged
merged 2 commits into from
Mar 8, 2024
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
26 changes: 4 additions & 22 deletions src/components/common/Buttons/DeleteMessageButton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled from 'styled-components';
import { useLocation } from 'react-router-dom';
import { Outlined36 } from '../../../styles/ButtonStyle';

function DeleteMessageButton({ id, onDelete }) {
const location = useLocation();
Expand All @@ -8,7 +9,6 @@ function DeleteMessageButton({ id, onDelete }) {
const handleButtonClick = async (e) => {
e.stopPropagation();
onDelete(id);
// navigate(`/post/${recipientID}/edit`, { replace: true });
};

return (
Expand All @@ -18,30 +18,12 @@ function DeleteMessageButton({ id, onDelete }) {
);
}

const Button = styled.button`
const Button = styled(Outlined36)`
position: absolute;
right: 24px;
display: ${({ $isDisplay }) => ($isDisplay ? 'block' : 'none')};
/* display: flex; */
padding: 6px;
justify-content: center;
align-items: center;
gap: 10px;
background: var(--white);
border-radius: 6px;
border: 1px solid var(--gray300);

&:hover {
background: var(--gray300);
}

&:active {
background: var(--gray100);
}

&:focus {
border: 1px solid var(--gray500);
}
padding: 0.6rem;
line-height: 0;
`;

const DeleteImg = styled.img`
Expand Down
1 change: 1 addition & 0 deletions src/components/post/SubHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ const SplitBarVertical2 = styled(SplitBarVertical)`
`;

const ShareButton = styled(Outlined36)`
padding: 0.6rem 1.6rem;
@media (max-width: 470px) {
padding: 6px 8px;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/post/subheader/EmojiDropDown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const EmojiGroupInDropDown = styled(EmojiGroup)`

const EmojiAddButton = styled(Outlined36)`
position: relative;
padding: 0.6rem 1.6rem;

@media (max-width: 470px) {
span {
Expand Down
1 change: 0 additions & 1 deletion src/styles/ButtonStyle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export const Secondary = styled(ButtonCommon)`
`;

export const Outlined36 = styled(ButtonCommon)`
padding: 0.6rem 1.6rem;
border-radius: 0.6rem;
background: var(--${({ disabled }) => (disabled ? 'gray300' : 'white')});
color: var(--${({ disabled }) => (disabled ? 'white' : 'gray900')});
Expand Down