-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SRO/ZO: Add footer to SR and ZZZ (#2833)
* Show commit hash in header for dev mode * Revert "Show commit hash in header for dev mode" This reverts commit 2083ab7. * Add footer to zzz and sr * Update strings
- Loading branch information
1 parent
1b7e95f
commit 92c66b9
Showing
4 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { AppBar, Box, Skeleton, Typography } from '@mui/material' | ||
import { Suspense } from 'react' | ||
|
||
export default function Footer() { | ||
return ( | ||
<Suspense fallback={<Skeleton variant="rectangular" height={64} />}> | ||
<FooterContent /> | ||
</Suspense> | ||
) | ||
} | ||
function FooterContent() { | ||
return ( | ||
<AppBar | ||
component="footer" | ||
position="static" | ||
sx={{ bgcolor: 'neutral800.main' }} | ||
elevation={0} | ||
> | ||
<Box | ||
display="flex" | ||
justifyContent="space-between" | ||
sx={{ px: 2, py: 1 }} | ||
gap={2} | ||
> | ||
<Typography variant="caption" sx={{ color: 'neutral400.main' }}> | ||
Build: | ||
<a | ||
href={ | ||
process.env.NX_URL_GITHUB_GO_CURRENT_VERSION || | ||
`${process.env.NX_URL_GITHUB_GO}/releases` | ||
} | ||
target="_blank" | ||
rel="noreferrer" | ||
style={{ color: 'inherit' }} | ||
> | ||
{process.env.NX_URL_GITHUB_GO_CURRENT_VERSION?.replace( | ||
/.*commit\//, | ||
'' | ||
).substring(0, 7)} | ||
</a> | ||
</Typography> | ||
</Box> | ||
</AppBar> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { AppBar, Box, Skeleton, Typography } from '@mui/material' | ||
import { Suspense } from 'react' | ||
|
||
export default function Footer() { | ||
return ( | ||
<Suspense fallback={<Skeleton variant="rectangular" height={64} />}> | ||
<FooterContent /> | ||
</Suspense> | ||
) | ||
} | ||
function FooterContent() { | ||
return ( | ||
<AppBar | ||
component="footer" | ||
position="static" | ||
sx={{ bgcolor: 'neutral800.main' }} | ||
elevation={0} | ||
> | ||
<Box | ||
display="flex" | ||
justifyContent="space-between" | ||
sx={{ px: 2, py: 1 }} | ||
gap={2} | ||
> | ||
<Typography variant="caption" sx={{ color: 'neutral400.main' }}> | ||
Build: | ||
<a | ||
href={ | ||
process.env.NX_URL_GITHUB_GO_CURRENT_VERSION || | ||
`${process.env.NX_URL_GITHUB_GO}/releases` | ||
} | ||
target="_blank" | ||
rel="noreferrer" | ||
style={{ color: 'inherit' }} | ||
> | ||
{process.env.NX_URL_GITHUB_GO_CURRENT_VERSION?.replace( | ||
/.*commit\//, | ||
'' | ||
).substring(0, 7)} | ||
</a> | ||
</Typography> | ||
</Box> | ||
</AppBar> | ||
) | ||
} |