Skip to content

Commit 5f38b9c

Browse files
committed
rendering config modal from app
1 parent 3ee7fbf commit 5f38b9c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/App.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ import { validateToken } from './services/service'
2626

2727
const NavigationRoutes = lazy(() => import('./components/common/navigation/NavigationRoutes'))
2828
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+
}
3134
toast.configure({
3235
autoClose: 3000,
3336
hideProgressBar: true,
@@ -225,7 +228,7 @@ export default function App() {
225228
<BreadcrumbStore>
226229
<Switch>
227230
{!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 }/>} />
229232
<Route path="/" render={() => <NavigationRoutes />} />
230233
<Redirect
231234
to={window._env_.K8S_CLIENT ? '/' : `${URLS.LOGIN_SSO}${location.search}`}

0 commit comments

Comments
 (0)