-
Notifications
You must be signed in to change notification settings - Fork 1
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 #104 from space-401/feat/layout
[FE] ๋ชจ๋ฌ, ๋ ์ด์์ ์ถ๊ฐ
- Loading branch information
Showing
33 changed files
with
383 additions
and
335 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
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
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
Empty file.
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,18 @@ | ||
import { useAlertModalStore } from '@store/modal'; | ||
import { AlertPropType } from '@type/modal.type'; | ||
|
||
export const useAlertModalOpen = () => { | ||
const { ModalOpen, setAlertInfo } = useAlertModalStore((state) => state); | ||
|
||
const alertModalOpen = (props: AlertPropType) => { | ||
const { alertMessage, alertTitle, width } = props; | ||
setAlertInfo({ | ||
alertMessage, | ||
alertTitle, | ||
width, | ||
}); | ||
ModalOpen(); | ||
}; | ||
|
||
return alertModalOpen; | ||
}; |
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,28 @@ | ||
import { useConfirmModalStore } from '@store/modal'; | ||
import { ConfirmPropType } from '@type/modal.type'; | ||
|
||
export const useConfirmModalOpen = () => { | ||
const { ModalOpen, setConfirmInfo } = useConfirmModalStore((state) => state); | ||
|
||
const confirmModalOpen = (props: ConfirmPropType) => { | ||
const { | ||
isPositiveModal, | ||
closeMessage, | ||
ApproveMessage, | ||
descriptionMessage, | ||
titleMessage, | ||
AsyncAction, | ||
} = props; | ||
setConfirmInfo({ | ||
isPositiveModal, | ||
closeMessage, | ||
ApproveMessage, | ||
descriptionMessage, | ||
titleMessage, | ||
AsyncAction, | ||
}); | ||
ModalOpen(); | ||
}; | ||
|
||
return confirmModalOpen; | ||
}; |
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,12 +1,12 @@ | ||
import { useDetailModalStore } from '@store/modal'; | ||
|
||
export const useDetailModalOpen = () => { | ||
const { setPostId, ModalOpen } = useDetailModalStore((state) => state); | ||
const { ModalOpen, setPostId } = useDetailModalStore((state) => state); | ||
|
||
const DetailModalOpen = (postId: number) => { | ||
setPostId(postId); | ||
ModalOpen(); | ||
}; | ||
|
||
return { DetailModalOpen }; | ||
return DetailModalOpen; | ||
}; |
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
Oops, something went wrong.