@@ -19,7 +19,6 @@ import { AnimatePresence, motion } from 'framer-motion'
19
19
import { noop , stopPropagation , useRegisterShortcut , UseRegisterShortcutProvider } from '@Common/index'
20
20
import { ComponentSizeType } from '@Shared/constants'
21
21
import { getUniqueId } from '@Shared/Helpers'
22
- import { getComponentSpecificThemeClass } from '@Shared/index'
23
22
import { ConfirmationModalBodyProps , ConfirmationModalProps , ConfirmationModalVariantType } from './types'
24
23
import { getPrimaryButtonStyleFromVariant , getConfirmationLabel , getIconFromVariant } from './utils'
25
24
import { Button , ButtonStyleType , ButtonVariantType } from '../Button'
@@ -38,7 +37,6 @@ const ConfirmationModalBody = ({
38
37
children,
39
38
handleClose,
40
39
shouldCloseOnEscape = true ,
41
- overriddenTheme,
42
40
isLandscapeView = false ,
43
41
} : ConfirmationModalBodyProps ) => {
44
42
const { registerShortcut, unregisterShortcut } = useRegisterShortcut ( )
@@ -84,7 +82,7 @@ const ConfirmationModalBody = ({
84
82
return (
85
83
< Backdrop onEscape = { shouldCloseOnEscape ? handleCloseWrapper : noop } >
86
84
< motion . div
87
- className = { `${ overriddenTheme ? getComponentSpecificThemeClass ( overriddenTheme ) : '' } ${ isLandscapeView ? 'w-500' : 'w-400' } confirmation-modal border__secondary flexbox-col br-8 bg__primary dc__m-auto mt-40 w-400` }
85
+ className = { `${ isLandscapeView ? 'w-500' : 'w-400' } confirmation-modal border__secondary flexbox-col br-8 bg__primary dc__m-auto mt-40 w-400` }
88
86
exit = { { y : 100 , opacity : 0 , scale : 0.75 , transition : { duration : 0.35 } } }
89
87
initial = { { y : 100 , opacity : 0 , scale : 0.75 } }
90
88
animate = { { y : 0 , opacity : 1 , scale : 1 } }
0 commit comments