File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,11 +43,7 @@ const Layout: React.FC = ({ children }) => {
4343 Digital Archive of Indigenous Language Persistence
4444 </ span >
4545 </ div >
46-
47- { deploymentEnvironment !== Environment . Production && (
48- < LoginHeaderButton />
49- ) }
50-
46+ < LoginHeaderButton />
5147 < HeaderPrefDrawer />
5248 </ div >
5349 < NavMenu menuID = { 2 } />
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111import { useCredentials , useUser } from "src/auth"
1212import { Button , CleanButton , Link } from "src/components"
1313import { AccountMenu } from "src/components/authenticated-users/account-menu"
14+ import { Environment , deploymentEnvironment } from "src/env"
1415import { centeredColumn } from "src/style/utils.css"
1516import Layout from "../../layout"
1617import {
@@ -43,6 +44,12 @@ export const UserAuthPageTemplate = (props: {
4344
4445// the login button that appears in the header of the website
4546export const LoginHeaderButton = ( props ?: { className ?: string } ) => {
47+ // hide the login button on production while development of DAILP TI is ongoing
48+ // FIXME remove this flag when DAILP TI launches in a stable form
49+ if ( deploymentEnvironment === Environment . Production ) {
50+ return null
51+ }
52+
4653 // get the current user's auth token
4754 const token = useCredentials ( )
4855
You can’t perform that action at this time.
0 commit comments