-
Notifications
You must be signed in to change notification settings - Fork 8
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 #1413 from 42organization/main
[deploy] 파티 모집 서비스 배포
- Loading branch information
Showing
192 changed files
with
11,409 additions
and
250 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
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,10 @@ | ||
// dynamic import로 Quill 불러오는 컴포넌트 | ||
import dynamic from 'next/dynamic'; | ||
|
||
// TODO : 로딩 컴포넌트 구체화 필요함. | ||
const DynamicQuill = dynamic(() => import('react-quill'), { | ||
ssr: false, | ||
loading: () => <p>Loading ...</p>, | ||
}); | ||
|
||
export default DynamicQuill; |
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
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,32 @@ | ||
import { useRouter } from 'next/router'; | ||
import StyledButton from 'components/UI/StyledButton'; | ||
import styles from 'styles/Layout/Layout.module.scss'; | ||
|
||
const PlayButton = () => { | ||
const presentPath = useRouter().asPath; | ||
const router = useRouter(); | ||
|
||
const onClickMatch = () => { | ||
router.replace('/'); | ||
router.push(`/match`); | ||
}; | ||
|
||
if ( | ||
presentPath === '/match' || | ||
presentPath === '/manual' || | ||
presentPath === '/store' || | ||
presentPath.startsWith('/party') | ||
) | ||
return null; | ||
return ( | ||
<div className={styles.buttonContainer}> | ||
<div className={styles.buttonWrapper}> | ||
<StyledButton onClick={onClickMatch} width={'5.5rem'}> | ||
Play | ||
</StyledButton> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PlayButton; |
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,24 @@ | ||
import { useRecoilValue } from 'recoil'; | ||
import { colorModeState } from 'utils/recoil/colorMode'; | ||
import styles from 'styles/Layout/Layout.module.scss'; | ||
|
||
const UserLayout = ({ children }: { children: React.ReactNode }) => { | ||
const colorMode = useRecoilValue(colorModeState); | ||
|
||
return ( | ||
<div className={styles.appContainer}> | ||
<div | ||
className={`${styles.background} ${ | ||
colorMode ? styles[colorMode.toLowerCase()] : styles.basic | ||
} `} | ||
> | ||
<div> | ||
{/* TODO : 상위 div 컴포넌트 필요한지 다시 확인해보기 */} | ||
{children} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default UserLayout; |
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,58 @@ | ||
import * as React from 'react'; | ||
import { | ||
DragDropContext, | ||
Droppable, | ||
OnDragEndResponder, | ||
Draggable, | ||
} from 'react-beautiful-dnd'; | ||
import { ListItem, ListItemAvatar, makeStyles } from '@mui/material'; | ||
import styles from 'styles/UI/DraggableList.module.scss'; | ||
|
||
export type DraggableListProps = { | ||
children: React.ReactNode[]; | ||
onDragEnd: OnDragEndResponder; | ||
}; | ||
|
||
const DraggableList = React.memo( | ||
({ onDragEnd, children }: DraggableListProps) => { | ||
return ( | ||
<DragDropContext onDragEnd={onDragEnd}> | ||
<Droppable droppableId='droppable-list'> | ||
{(provided) => ( | ||
<div | ||
ref={provided.innerRef} | ||
{...provided.droppableProps} | ||
style={{ width: '100%' }} | ||
> | ||
{children && | ||
children.map((item, index) => ( | ||
<Draggable | ||
draggableId={`item-${index}`} | ||
index={index} | ||
key={index} | ||
> | ||
{(provided, snapshot) => ( | ||
<ListItem | ||
ref={provided.innerRef} | ||
{...provided.draggableProps} | ||
{...provided.dragHandleProps} | ||
className={ | ||
snapshot.isDragging ? styles.draggingListItem : '' | ||
} | ||
> | ||
{item} | ||
</ListItem> | ||
)} | ||
</Draggable> | ||
))} | ||
{provided.placeholder} | ||
</div> | ||
)} | ||
</Droppable> | ||
</DragDropContext> | ||
); | ||
} | ||
); | ||
|
||
DraggableList.displayName = 'DraggableList'; | ||
export default DraggableList; |
Oops, something went wrong.