Skip to content

Commit

Permalink
fix: #330 에러메시지 공간을 위한 간격 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeminhee119 committed Sep 6, 2024
1 parent 82ae72f commit 0585dfa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/login/SetNicknamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function SetNickNamePage() {
<Typography variant="T4">닉네임을 설정해주세요!</Typography>
<Spacing size={4} />
<Input value={nickName} onChange={handleInputChange} placeholder="Text" count={true} maxLength={maxLength} />
<Spacing size={0.8} />
<Spacing size={3.6} />
<TipCard message={"실명으로 활동하는 걸 추천해요!"} />

<ButtonProvider isProgress={isPending}>
Expand Down
9 changes: 4 additions & 5 deletions src/component/common/tip/TipCard.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { css, Interpolation, Theme } from "@emotion/react";
import { css } from "@emotion/react";

import { Typography } from "@/component/common/typography";
import { DESIGN_TOKEN_COLOR } from "@/style/designTokens";

type TipCardProps = {
message: string;
header?: string;
styles?: Interpolation<Theme>;
};
} & React.HTMLAttributes<HTMLDivElement>;

export function TipCard({ message, header = "TIP", styles }: TipCardProps) {
export function TipCard({ message, header = "TIP", ...props }: TipCardProps) {
return (
<div
css={[
Expand All @@ -21,8 +20,8 @@ export function TipCard({ message, header = "TIP", styles }: TipCardProps) {
flex-direction: column;
gap: 0.4rem;
`,
styles,
]}
{...props}
>
<Typography variant={"body12SemiBold"} color={"blue600"}>
{header}
Expand Down
4 changes: 2 additions & 2 deletions src/component/retrospectCreate/steps/MainInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function MainInfo() {
</InputLabelContainer>
<TipCard
message="회고 설명 또는 진행 목표에 대해 적어도 좋아요 :)"
styles={css`
margin-top: 0.8rem;
css={css`
margin-top: 3.6rem;
`}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/component/space/create/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function Info({ onNext }: { onNext: (infoValues: InfoValues) => void }) {
placeholder="프로젝트 한 줄 설명을 적어주세요"
/>
</InputLabelContainer>
<Spacing size={0.8} />
<Spacing size={3.6} />
<TipCard message="프로젝트 설명 또는 진행 목표에 대해 적어도 좋아요 :)" />
<ButtonProvider>
<ButtonProvider.Primary
Expand Down

0 comments on commit 0585dfa

Please sign in to comment.