🎨 styles: product info detail

:%s
This commit is contained in:
lytrankieio123
2021-08-30 17:20:35 +07:00
parent fb48ab77d7
commit 887c3ae2e3
14 changed files with 141 additions and 75 deletions

View File

@@ -0,0 +1 @@
export { default as useModalCommon } from './useModalCommon'

View File

@@ -4,7 +4,7 @@ interface Props {
initialValue?: boolean,
}
export const useModalCommon = ({ initialValue = false }: Props) => {
const useModalCommon = ({ initialValue = false }: Props) => {
const [visible, setVisible] = useState<boolean>(initialValue)
const openModal = (e?: any) => {
@@ -21,3 +21,5 @@ export const useModalCommon = ({ initialValue = false }: Props) => {
visible, openModal, closeModal
}
};
export default useModalCommon