Skip to content

Commit

Permalink
chore: rcm add feature flag for demo (#3309)
Browse files Browse the repository at this point in the history
* chore: rcm add feature flag for demo

* chore: update snapshot
  • Loading branch information
Bdragon93 authored Jan 18, 2021
1 parent 0298628 commit 3c25889
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@ exports[`OfficesPage should match a snapshot 1`] = `
>
Manage Offices
</Component>
<Component>
<Component
tabConfigs={
Array [
Object {
"active": true,
"displayText": "Offices",
"onTabClick": [Function],
"tabIdentifier": "/offices",
},
Object {
"active": false,
"displayText": "Groups",
"onTabClick": [Function],
"tabIdentifier": "/offices/groups",
},
]
}
/>
</Component>
<Component
component={[Function]}
exact={true}
path="/offices"
/>
<Component
component={[Function]}
exact={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@ exports[`UsersPage should match a snapshot 1`] = `
>
Manage Users
</Component>
<Component>
<Component
tabConfigs={
Array [
Object {
"active": true,
"displayText": "Users",
"onTabClick": [Function],
"tabIdentifier": "/users",
},
Object {
"active": false,
"displayText": "Groups",
"onTabClick": [Function],
"tabIdentifier": "/users/groups",
},
]
}
/>
</Component>
<Component
component={[Function]}
exact={true}
path="/users"
/>
<Component
component={[Function]}
exact={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const OfficesPage: React.FC = () => {
return (
<div>
<H3 isHeadingSection>Manage Offices</H3>
{window.reapit.config.appEnv !== 'production' && (
{window.reapit.config.appEnv !== 'production' && window.reapit.config.appEnv !== 'development' && (
<>
<Section>
<Tabs tabConfigs={tabConfigs({ pathname, handleChangeTab })} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const UsersPage: React.FC = () => {
return (
<div>
<H3 isHeadingSection>Manage Users</H3>
{window.reapit.config.appEnv !== 'production' && (
{window.reapit.config.appEnv !== 'production' && window.reapit.config.appEnv !== 'development' && (
<>
<Section>
<Tabs tabConfigs={tabConfigs({ pathname, handleChangeTab })} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const PrivateRouteWrapper: React.FunctionComponent<PrivateRouteWrapperPro
return <Redirect to={Routes.ACCESS_DENIED} />
}

if (window.reapit.config.appEnv === 'production') {
if (window.reapit.config.appEnv === 'production' || window.reapit.config.appEnv === 'development') {
if (pathname === '/' || pathname === Routes.OFFICES) {
return <Redirect to={Routes.OFFICES_GROUPS} />
}
Expand Down

0 comments on commit 3c25889

Please sign in to comment.