Skip to content

Commit db9e722

Browse files
committed
code refactroing
1 parent 68a612f commit db9e722

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/App.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,14 @@ export default function App() {
247247
<BreadcrumbStore>
248248
{isDirectApprovalNotification ? (
249249
<Switch>
250-
<Route
251-
exact
252-
path={`/${approvalType?.toLocaleLowerCase()}/approve`}
253-
render={() =>
254-
GenericDirectApprovalModal && (
255-
<GenericDirectApprovalModal approvalType={approvalType} approvalToken={approvalToken} />
256-
)
257-
}
258-
/>
250+
{GenericDirectApprovalModal && (
251+
<Route exact path={`/${approvalType?.toLocaleLowerCase()}/approve`}>
252+
<GenericDirectApprovalModal
253+
approvalType={approvalType}
254+
approvalToken={approvalToken}
255+
/>
256+
</Route>
257+
)}
259258
</Switch>
260259
) : (
261260
<Switch>

0 commit comments

Comments
 (0)