From 4c0e70b00665eeb235543438f063bbc7536d5faf Mon Sep 17 00:00:00 2001 From: rlacko <rlacko@sch.bme.hu> Date: Sat, 29 Aug 2020 17:59:12 +0200 Subject: [PATCH] add border option to CustomModal --- src/core/components/CustomModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/components/CustomModal.tsx b/src/core/components/CustomModal.tsx index e6e0119..43d8169 100644 --- a/src/core/components/CustomModal.tsx +++ b/src/core/components/CustomModal.tsx @@ -8,7 +8,7 @@ interface ICustomModalProps { isOpen: boolean; setIsOpen: Dispatcher<boolean>; children: React.ReactNode; - customStyle: { backgroundColor?: string; padding?: string; width?: string }; + customStyle: { backgroundColor?: string; padding?: string; width?: string; border?: string }; } const useStyles = makeStyles((theme) => ({ @@ -26,7 +26,7 @@ const useStyles = makeStyles((theme) => ({ modalContent: (customStyle: ICustomModalProps['customStyle']) => ({ ...{ backgroundColor: customStyle.backgroundColor || 'theme.palette.background.paper', - border: 'none', + border: customStyle.border || 'none', padding: customStyle.padding || 'none', boxShadow: theme.shadows[5], '&:focus': { -- GitLab