Skip to content

Commit

Permalink
Style: 위치, 폰트크기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
minseong0324 committed Mar 17, 2024
1 parent 383f740 commit 915e577
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/components/Button/CloseMapButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export default function CloseMapButton(props: CloseMapButtonProps) {
width={55}
height={55}
background={CloseMapButtonImg}
margin={"0 0 0 0"}
{...props}
position={"fixed"}
position={"absolute"}
top={20}
right={20}
zIndex={100}
Expand Down
5 changes: 4 additions & 1 deletion src/components/Button/ProfileNameButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ export default function ProfileNameButton(props: TextButtonProps) {
/>
</Styled.Container>
) : (
<TextButton {...props} onClick={() => handleProfileChangeInputBarOpen()}>
<TextButton {...props}
onClick={() => handleProfileChangeInputBarOpen()}
fontSize={24}
>
{props.children}
</TextButton>
)}
Expand Down
3 changes: 1 addition & 2 deletions src/components/Button/SettingButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export default function SettingButton(props: SettingButtonProps) {
width={40}
height={40}
background={SettingButtonImg}
margin={"0 0 0 0"}
{...props}
position={"fixed"}
position={"absolute"}
top={20}
right={20}
zIndex={100}
Expand Down
2 changes: 1 addition & 1 deletion src/components/FavoritePlace/AddFavoritePlaceMap/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export const Container = styled.div`
transform: translateX(-48%);
width: 350px;
z-index: 1;
bottom: 90px;
bottom: 110px;
`;
6 changes: 3 additions & 3 deletions src/pages/MyPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function MyPage() {
}

const handleToggleMapVisibility = () => {
if (userInfo?.data?.infos?.locations?.length >= 5) {
if (userInfo.data.infos.locations.length >= 5) {
openModal();
setAlertModal({
isOpen: true,
Expand All @@ -55,9 +55,9 @@ export default function MyPage() {
{!showMap ? (
<>
<SettingButton onClick={() => handleNavigateToSetting()} />
<Styled.ProfileImage src={userInfo?.data?.infos?.profile_image} />
<Styled.ProfileImage src={userInfo.data.infos.profile_image} />
<ProfileNameButton onClick={() => handleChangeProfileName()}>
{`${userInfo?.data?.infos?.nickname} 🖊️`}
{`${userInfo.data.infos.nickname} 🖊️`}
</ProfileNameButton>
<Styled.Line />
<TextButton onClick={() => handleToggleMapVisibility()}>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/MyPage/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const ProfileImage = styled.img`
`;

export const Line = styled.div`
width: 340px;
width: 100vw;
max-width: 430px;
height: 2.5px;
background-color: ${theme.colors.darkBrown};
position: relative;
Expand Down

0 comments on commit 915e577

Please sign in to comment.