-
Notifications
You must be signed in to change notification settings - Fork 0
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 #176 from Team-TIFY/dev
[Deploy]: QA 배포
- Loading branch information
Showing
81 changed files
with
1,701 additions
and
1,013 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
2 changes: 1 addition & 1 deletion
2
src/assets/icons/PriceFilter.tsx → src/assets/icons/PriceFilterIcon.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const PriceFilter = () => { | ||
export const PriceFilterIcon = () => { | ||
return ( | ||
<> | ||
<svg | ||
|
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,21 @@ | ||
export const PurpleCheck = () => { | ||
return ( | ||
<> | ||
<svg | ||
width="15" | ||
height="10" | ||
viewBox="0 0 15 10" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M1.1665 4.99967L5.33317 9.16634L13.6665 0.833008" | ||
stroke="#D2B2FF" | ||
strokeWidth="1.6" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</svg> | ||
</> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 +1,73 @@ | ||
import styled from '@emotion/styled' | ||
import { useState } from 'react' | ||
const BottomSheet = () => { | ||
const [expanded, setExpanded] = useState(false) | ||
return <BottomSheetContainer></BottomSheetContainer> | ||
import { useState, useEffect, ReactNode } from 'react' | ||
import Dimmer from '@components/layouts/Dimmer' | ||
import { useOutsideClick } from '@libs/hooks/useOutsideClick' | ||
import { theme } from '@styles/theme' | ||
import { motion } from 'framer-motion' | ||
|
||
const BottomSheet = ({ | ||
delaytime, | ||
children, | ||
}: { | ||
delaytime?: number | ||
children?: ReactNode | ||
}) => { | ||
const [expanded, setExpanded] = useState(true) | ||
const [outsideRef, handleClickEditProfileDimmer] = useOutsideClick(() => | ||
setExpanded(false), | ||
) | ||
useEffect(() => { | ||
if (delaytime) { | ||
setTimeout(() => { | ||
setExpanded(false) | ||
}, delaytime) | ||
} | ||
}, []) | ||
|
||
return ( | ||
<> | ||
{expanded ? ( | ||
<Dimmer dimmerRef={outsideRef} onClick={handleClickEditProfileDimmer} /> | ||
) : ( | ||
'' | ||
)} | ||
<BottomSheetContainer | ||
initial={{ y: '100%' }} | ||
animate={{ y: expanded ? '0%' : '100%' }} | ||
transition={{ | ||
duration: 1, | ||
type: 'spring', | ||
damping: 40, | ||
stiffness: 400, | ||
}} | ||
> | ||
<div | ||
style={{ | ||
borderRadius: '40px', | ||
width: '32px', | ||
height: '4px', | ||
backgroundColor: `${theme.palette.gray_500}`, | ||
marginBottom: '60px', | ||
}} | ||
/> | ||
{children} | ||
</BottomSheetContainer> | ||
</> | ||
) | ||
} | ||
|
||
export default BottomSheet | ||
|
||
const BottomSheetContainer = styled.div` | ||
const BottomSheetContainer = styled(motion.div)` | ||
display: flex; | ||
position: absolute; | ||
bottom: 0px; | ||
flex-direction: column; | ||
align-items: center; | ||
background-color: ${theme.palette.background}; | ||
width: 100%; | ||
height: 330px; | ||
z-index: 1000; | ||
border-radius: 24px 24px 0px 0px; | ||
padding: 16px; | ||
` |
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
Oops, something went wrong.