Skip to content

Commit

Permalink
style: button margin
Browse files Browse the repository at this point in the history
  • Loading branch information
urjimyu committed May 29, 2024
1 parent e64f533 commit 1b88b46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ import styled from 'styled-components';
interface ButtonInterface {
message: string;
onClick: VoidFunction;
className?: string;
}

const Button = ({ message, onClick }: ButtonInterface) => {
return <ButtonWrapper onClick={onClick}>{message}</ButtonWrapper>;
const Button = ({ message, onClick, className }: ButtonInterface) => {
return (
<ButtonWrapper onClick={onClick} className={className}>
{message}
</ButtonWrapper>
);
};

export default Button;
Expand All @@ -18,11 +23,16 @@ const ButtonWrapper = styled.div`
width: 26rem;
height: 5.2rem;
margin-top: 7.4rem;
font-size: 1.6rem;
text-align: center;
color: ${({ theme }) => theme.colors.white};
border-radius: 1.8rem;
border: 1px solid ${({ theme }) => theme.colors.white};
.unregistered {
margin-top: 9rem;
}
`;
1 change: 1 addition & 0 deletions src/components/DeleteButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const ButtonWrapper = styled.div`
width: 26rem;
height: 5.2rem;
margin-top: 7.4rem;
font-size: 1.6rem;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/UnregisteredPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const UnregisteredPage = () => {
return (
<UnregisteredPageWrapper>
<Title>๊ฐ€์ž…๋œ ํšŒ์›์ด ์•„๋‹™๋‹ˆ๋‹ค.</Title>
<Button message="ํ™•์ธ" onClick={navigateHome} />
<Button message="ํ™•์ธ" onClick={navigateHome} className="unregistered" />
</UnregisteredPageWrapper>
);
};
Expand Down

0 comments on commit 1b88b46

Please sign in to comment.