Skip to content

Commit

Permalink
[#47] Feat CheckSignUpPage
Browse files Browse the repository at this point in the history
- List & Detail API 생성 및 연동
  • Loading branch information
JoGeumJu committed Jun 29, 2023
1 parent e33fb22 commit aa71e3f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/components/adminPage/AdminDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ export const AdminDetailPage = () => {
email={data?.email}
hotLine={data?.hotLine}
subLine={data?.subLine}
isLoading={isLoading}
/>
<SignUpSiteInfo
siteName={data?.siteName}
purpose={data?.purpose}
owner={data?.owner}
isLoading={isLoading}
/>
<SignUpAddInfo
mainColor={data?.mainColor}
Expand All @@ -34,6 +36,7 @@ export const AdminDetailPage = () => {
database={data?.database}
etc={data?.etc}
meeting={data?.meeting}
isLoading={isLoading}
/>
</WrapperInner>
</Wrapper>
Expand Down
10 changes: 6 additions & 4 deletions src/components/adminPage/SignUpAddInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface Props {
database: boolean | undefined;
etc: string | undefined;
meeting: string | undefined;
isLoading: boolean;
}

export const SignUpAddInfo = (props: Props) => {
Expand All @@ -29,13 +30,13 @@ export const SignUpAddInfo = (props: Props) => {
<BoxItem>
<BoxItemLabel>브랜드 컬러1</BoxItemLabel>
<BoxItemContent>
<ColorPalette data={props.mainColor!} />
<ColorPalette data={props.isLoading ? [] : props.mainColor!} />
</BoxItemContent>
</BoxItem>
<BoxItem>
<BoxItemLabel>브랜드 컬러2</BoxItemLabel>
<BoxItemContent>
<ColorPalette data={props.subColor!} />
<ColorPalette data={props.isLoading ? [] : props.subColor!} />
</BoxItemContent>
</BoxItem>
<BoxItem>
Expand All @@ -60,12 +61,13 @@ export const SignUpAddInfo = (props: Props) => {
</BoxItem>
<BoxItem>
<BoxItemLabel>기타사항</BoxItemLabel>
<BoxItemContent>{props.etc}</BoxItemContent>
<BoxItemContent>{props.isLoading && props.etc}</BoxItemContent>
</BoxItem>
<BoxItem>
<BoxItemLabel>*첫 미팅 희망날짜</BoxItemLabel>
<BoxItemContent>
{date![0]}({daysOfWeek[time.getDay()]}) / {date![1].slice(0, 5)}
{date !== undefined && date?.[0]}({daysOfWeek[time.getDay()]}) /{" "}
{date?.[1].slice(0, 5)}
</BoxItemContent>
</BoxItem>
</Box>
Expand Down
3 changes: 2 additions & 1 deletion src/components/adminPage/SignUpSiteInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ interface Props {
siteName: string | undefined;
purpose: string | undefined;
owner: "COMPANY" | "PERSONAL" | "PUBLIC" | undefined;
isLoading: boolean;
}

export const SignUpSiteInfo = (props: Props) => {
Expand All @@ -28,7 +29,7 @@ export const SignUpSiteInfo = (props: Props) => {
<BoxItem>
<BoxItemLabel>*사이트 운영자</BoxItemLabel>
<BoxItemContent>
<OrdererRadioBoxs data={props.owner!} />
<OrdererRadioBoxs data={props.isLoading ? null : props.owner!} />
</BoxItemContent>
</BoxItem>
</Box>
Expand Down
1 change: 1 addition & 0 deletions src/components/adminPage/SignUpUserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ interface Props {
email: string | undefined;
hotLine: string | undefined;
subLine: string | undefined;
isLoading: boolean;
}

export const SignUpUserInfo = (props: Props) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/adminPage/components/OrdererRadioBoxs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from "styled-components";
import { customColor } from "../../customColor";

interface Props {
data: "COMPANY" | "PUBLIC" | "PERSONAL";
data: "COMPANY" | "PUBLIC" | "PERSONAL" | null;
}

export const OrdererRadioBoxs = ({ data }: Props) => {
Expand Down

0 comments on commit aa71e3f

Please sign in to comment.