File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,11 @@ import { validateToken } from './services/service'
26
26
27
27
const NavigationRoutes = lazy ( ( ) => import ( './components/common/navigation/NavigationRoutes' ) )
28
28
const Login = lazy ( ( ) => import ( './components/login/Login' ) )
29
- const NotificationApprovalViaEmailComponent = importComponentFromFELibrary ( 'NotificationApprovalViaEmailComponent' )
30
-
29
+ const GenericDirectApprovalModal = importComponentFromFELibrary ( 'GenericDirectApprovalModal' )
30
+ export enum APPROVAL_MODAL_TYPE {
31
+ CONFIG = 'CONFIG' ,
32
+ IMAGE = 'IMAGE' ,
33
+ }
31
34
toast . configure ( {
32
35
autoClose : 3000 ,
33
36
hideProgressBar : true ,
@@ -225,7 +228,7 @@ export default function App() {
225
228
< BreadcrumbStore >
226
229
< Switch >
227
230
{ ! window . _env_ . K8S_CLIENT && < Route path = { `/login` } component = { Login } /> }
228
- < Route path = { `/approval` } component = { NotificationApprovalViaEmailComponent } />
231
+ < Route path = { `/approval` } render = { ( ) => GenericDirectApprovalModal && < GenericDirectApprovalModal approvalType = { APPROVAL_MODAL_TYPE . IMAGE } /> } />
229
232
< Route path = "/" render = { ( ) => < NavigationRoutes /> } />
230
233
< Redirect
231
234
to = { window . _env_ . K8S_CLIENT ? '/' : `${ URLS . LOGIN_SSO } ${ location . search } ` }
You can’t perform that action at this time.
0 commit comments