-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from Strong-Potato/158-feat-add-branch-proces…
…s-in-trip-page Feat: add branch process in trip page
- Loading branch information
Showing
28 changed files
with
676 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
import { avatarAnatomy } from "@chakra-ui/anatomy"; | ||
import { createMultiStyleConfigHelpers } from "@chakra-ui/react"; | ||
import {avatarAnatomy} from '@chakra-ui/anatomy'; | ||
import {createMultiStyleConfigHelpers} from '@chakra-ui/react'; | ||
|
||
const { definePartsStyle, defineMultiStyleConfig } = | ||
createMultiStyleConfigHelpers(avatarAnatomy.keys); | ||
const {definePartsStyle, defineMultiStyleConfig} = createMultiStyleConfigHelpers(avatarAnatomy.keys); | ||
|
||
const tabsVoteCard = definePartsStyle({ | ||
container: { | ||
w: "24px", | ||
h: "24px", | ||
border: "1px solid #fff", | ||
w: '24px', | ||
h: '24px', | ||
border: '1px solid #fff', | ||
}, | ||
excessLabel: { | ||
w: "39px", | ||
h: "24px", | ||
borderRadius: "75px", | ||
border: "1px solid #2388FF", | ||
color: "#2388FF", | ||
bg: "#fff", | ||
w: '39px', | ||
h: '24px', | ||
borderRadius: '75px', | ||
border: '1px solid #2388FF', | ||
color: '#2388FF', | ||
bg: '#fff', | ||
|
||
fontSize: "captionSmall", | ||
fontWeight: "captionSmall", | ||
lineHeight: "captionSmall", | ||
fontSize: 'captionSmall', | ||
fontWeight: 'captionSmall', | ||
lineHeight: 'captionSmall', | ||
}, | ||
}); | ||
|
||
const spaceAvatar = definePartsStyle({ | ||
excessLabel: { | ||
display: 'none !important', | ||
}, | ||
}); | ||
|
||
export const avatarTheme = defineMultiStyleConfig({ | ||
variants: { tabsVoteCard }, | ||
variants: {tabsVoteCard, spaceAvatar}, | ||
}); |
40 changes: 14 additions & 26 deletions
40
src/components/GlobalNavigationBar/GlobalNavigationBar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/components/Route/DeletePlacesModal/DeletePlacesModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import {Button, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay} from '@chakra-ui/react'; | ||
|
||
import {DeletePlacesModalProps} from '@/types/modal'; | ||
|
||
function DeletePlacesModal({isOpen, onClose, placeList}: DeletePlacesModalProps) { | ||
const deletePlaces = () => { | ||
console.log('삭제', placeList); | ||
}; | ||
|
||
return ( | ||
<Modal isOpen={isOpen} onClose={onClose} size='lg' isCentered> | ||
<ModalOverlay /> | ||
<ModalContent | ||
display='flex' | ||
flexDirection='column' | ||
alignItems='center' | ||
gap='1.2rem' | ||
borderRadius='16px' | ||
bg='neutral.0' | ||
p='32px' | ||
> | ||
<ModalHeader fontSize='subTitle' fontWeight='subTitle' lineHeight='subTitle' color='neutral.900' p='0'> | ||
선택된 항목을 삭제하시겠습니까? | ||
</ModalHeader> | ||
<ModalBody fontSize='tabLabel' fontWeight='tabLabel' lineHeight='tabLabel' color='neutral.400' p='0'> | ||
<p></p> | ||
</ModalBody> | ||
<ModalFooter display='flex' gap='8rem' p='0' mt='1.2rem'> | ||
<Button | ||
variant='none' | ||
fontSize='button' | ||
fontWeight='button' | ||
lineHeight='button' | ||
color='neutral.400' | ||
onClick={onClose} | ||
> | ||
취소 | ||
</Button> | ||
<Button | ||
onClick={deletePlaces} | ||
variant='none' | ||
fontSize='button' | ||
fontWeight='button' | ||
lineHeight='button' | ||
color='primary.400' | ||
> | ||
삭제하기 | ||
</Button> | ||
</ModalFooter> | ||
</ModalContent> | ||
</Modal> | ||
); | ||
} | ||
|
||
export default DeletePlacesModal; |
Oops, something went wrong.