We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a612f commit db9e722Copy full SHA for db9e722
src/App.tsx
@@ -247,15 +247,14 @@ export default function App() {
247
<BreadcrumbStore>
248
{isDirectApprovalNotification ? (
249
<Switch>
250
- <Route
251
- exact
252
- path={`/${approvalType?.toLocaleLowerCase()}/approve`}
253
- render={() =>
254
- GenericDirectApprovalModal && (
255
- <GenericDirectApprovalModal approvalType={approvalType} approvalToken={approvalToken} />
256
- )
257
- }
258
- />
+ {GenericDirectApprovalModal && (
+ <Route exact path={`/${approvalType?.toLocaleLowerCase()}/approve`}>
+ <GenericDirectApprovalModal
+ approvalType={approvalType}
+ approvalToken={approvalToken}
+ />
+ </Route>
+ )}
259
</Switch>
260
) : (
261
0 commit comments