mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Extract expression to avoid Prettier changing it
This commit is contained in:
parent
7995fc7f64
commit
366a510891
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ export const fakeAuth = {
|
|||
/* eslint-disable arrow-body-style */
|
||||
const MatchWithSubRoutes = props => {
|
||||
const { auth, component: Component, ...rest } = props;
|
||||
const canShowComponent = !auth || (auth && fakeAuth.isAuthenticated);
|
||||
const isAuthenticated = auth && fakeAuth.isAuthenticated;
|
||||
const canShowComponent = !auth || isAuthenticated;
|
||||
return (
|
||||
<Match
|
||||
{...rest}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue