Skip to content

Commit

Permalink
design :: selectbar 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Mar 25, 2024
1 parent 8534b41 commit 8b3551c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pages/Team/Create.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import styled from '@emotion/styled';
import { Sidebar } from '@/components/common/sidebar';
import { Input } from '@/components/common/Input';
import { SelectBar } from '@/components/common/SelectBar';
import { useState } from 'react';

type ProjectType = '동아리' | '팀 프로젝트' | '개인 프로젝트' | '기타';
const projectKinds: ProjectType[] = ['동아리', '팀 프로젝트', '개인 프로젝트', '기타'];

export const TeamCreate = () => {
const [selectedIndex, setSelectIndex] = useState<number>();

return (
<Wrapper>
<Sidebar />
Expand All @@ -13,6 +20,8 @@ export const TeamCreate = () => {
<Form>
<Input width={400} label="팀 이름(한글)" placeholder="팀 이름(한글)" />
<Input width={400} label="팀 이름(영어)" placeholder="팀 이름(영어)" />
<SelectBar selectedIndex={selectedIndex} onSelect={setSelectIndex} values={projectKinds} label="팀 분류" />
<div>hello world</div>
</Form>
</Container>
</Wrapper>
Expand Down Expand Up @@ -43,6 +52,7 @@ const Title = styled.div`
font-size: 30px;
font-weight: 600;
color: #202020;
cursor: default;
`;

const Form = styled.div`
Expand Down

0 comments on commit 8b3551c

Please sign in to comment.