Last active
June 16, 2022 19:35
-
-
Save ljaviertovar/baf1189f650574a29a2da8936082da3b to your computer and use it in GitHub Desktop.
A reusable Modal in React ts
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
import { | |
ModalConfigDummy, | |
ModalPositionX, | |
ModalPositionY, | |
} from "./ts/interfaces/modal.interface"; | |
export const INITIAL_CONFIG: ModalConfigDummy = { | |
modal1: { | |
title: "Modal Header 1", | |
showHeader: true, | |
showOverlay: true, | |
positionX: ModalPositionX.center, | |
positionY: ModalPositionY.center, | |
padding: "20px", | |
}, | |
modal2: { | |
title: "Modal Header 2", | |
showHeader: false, | |
showOverlay: true, | |
positionX: ModalPositionX.center, | |
positionY: ModalPositionY.center, | |
padding: "20px", | |
}, | |
modal3: { | |
title: "Modal Header 3", | |
showHeader: false, | |
showOverlay: true, | |
positionX: ModalPositionX.left, | |
positionY: ModalPositionY.start, | |
padding: "0", | |
}, | |
modal4: { | |
title: "Modal Header 4", | |
showHeader: false, | |
showOverlay: true, | |
positionX: ModalPositionX.right, | |
positionY: ModalPositionY.end, | |
padding: "0", | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment