File tree Expand file tree Collapse file tree 4 files changed +25
-42
lines changed
src/frontend/src/components/guild Expand file tree Collapse file tree 4 files changed +25
-42
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import AddGuildButton from '../AddGuildButton' ;
1+ import useModalStore from '@/stores/modalStore' ;
2+
3+ import CreateGuildModalContent from '../CreateGuildModalContent' ;
24
35import * as S from './styles' ;
46
57const GuildList = ( ) => {
8+ const { openModal } = useModalStore ( ) ;
9+
10+ const handleChangeModal = ( ) => {
11+ openModal ( 'basic' , < CreateGuildModalContent /> ) ;
12+ } ;
13+
614 return (
715 < S . GuildList >
816 < S . DMButton >
917 < S . DiscordIcon size = { 32 } />
1018 </ S . DMButton >
1119 { /* 서버 리스트 추가 예정 */ }
12- < AddGuildButton />
20+ < S . AddGuildButton onClick = { handleChangeModal } >
21+ < S . PlusIcon size = { 24 } />
22+ </ S . AddGuildButton >
1323 < S . SearchCommunityButton >
1424 < S . CompassIcon size = { 36 } />
1525 </ S . SearchCommunityButton >
Original file line number Diff line number Diff line change 11import { BiCompass } from 'react-icons/bi' ;
22import { BsDiscord } from 'react-icons/bs' ;
3+ import { TbPlus } from 'react-icons/tb' ;
34import styled from 'styled-components' ;
45
56export const GuildList = styled . nav `
@@ -30,7 +31,7 @@ export const DiscordIcon = styled(BsDiscord)`
3031 color: ${ ( { theme } ) => theme . colors . white } ;
3132` ;
3233
33- export const SearchCommunityButton = styled . button `
34+ export const CircleButton = styled . button `
3435 display: flex;
3536 align-items: center;
3637 justify-content: center;
@@ -42,6 +43,17 @@ export const SearchCommunityButton = styled.button`
4243 background-color: ${ ( { theme } ) => theme . colors . dark [ 600 ] } ;
4344` ;
4445
46+ export const AddGuildButton = styled ( CircleButton ) `
47+ /* 버튼별 역할 구별을 위해 분리 */
48+ ` ;
49+ export const SearchCommunityButton = styled ( CircleButton ) `
50+ /* 버튼별 역할 구별을 위해 분리 */
51+ ` ;
52+
53+ export const PlusIcon = styled ( TbPlus ) `
54+ color: ${ ( { theme } ) => theme . colors . dark [ 400 ] } ;
55+ ` ;
56+
4557export const CompassIcon = styled ( BiCompass ) `
4658 color: ${ ( { theme } ) => theme . colors . dark [ 400 ] } ;
4759` ;
You can’t perform that action at this time.
0 commit comments