Adds helper function to enable furniture hiding

This commit is contained in:
Alicia Sykes 2021-08-08 17:14:10 +01:00
parent 98d92f9c87
commit 64ef03036e
2 changed files with 11 additions and 0 deletions

6
src/utils/MiscHelpers.js Normal file
View File

@ -0,0 +1,6 @@
import { hideFurnitureOn } from '@/utils/defaults';
/* Returns false if page furniture should be hidden on said route */
export const shouldBeVisible = (routeName) => !hideFurnitureOn.includes(routeName);
export const x = () => null;

View File

@ -58,6 +58,11 @@ module.exports = {
settings: true,
footer: true,
},
/* A list of route names that page furniture (header, footer, etc) should be hidden on */
hideFurnitureOn: [
'minimal',
'login',
],
/* Key names for local storage identifiers */
localStorageKeys: {
LANGUAGE: 'language',