-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add secondary footer content to footer config (#1331)
I am adding some more fields to the secondary section in the footer section, in order to have any text content configurable: Added `division`, `version`, and `name`, repurposed `title`. I'd be curious to know how other instances might use and configure the footer, this could better inform naming decisions (e.g. `division`?).
- Loading branch information
Showing
4 changed files
with
21 additions
and
15 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 |
---|---|---|
|
@@ -71,10 +71,12 @@ let defaultSubNavItems: ( | |
|
||
const defaultFooterSettings = { | ||
secondarySection: { | ||
id: 'email test', | ||
title: 'email test', | ||
to: '/data-catalog', | ||
type: 'Email' | ||
division: 'NASA EarthData 2024', | ||
version: 'BETA VERSION', | ||
title: 'NASA Official', | ||
name: 'Manil Maskey', | ||
to: '[email protected]', | ||
type: 'email' | ||
}, | ||
returnToTop: true | ||
}; | ||
|
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
const dotEnvConfig = require('dotenv').config(); | ||
const { parsed: config } = dotEnvConfig; | ||
function checkEnvFlag(value) { | ||
return (value ?? '').toLowerCase() === 'true'; | ||
} | ||
|
||
let mainNavItems = [ | ||
{ | ||
|
@@ -53,9 +50,11 @@ let mainNavItems = [ | |
|
||
let footerSettings = { | ||
secondarySection: { | ||
id: 'stories', | ||
title: 'email test', | ||
to: '/data-catalog', | ||
division: 'NASA EarthData 2024', | ||
version: process.env.APP_VERSION ?? 'BETA VERSION', | ||
title: 'NASA Official', | ||
name: 'Manil Maskey', | ||
to: '[email protected]', | ||
type: 'email' | ||
}, | ||
returnToTop: true | ||
|
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