feat: added pages, forms, and functionality.
All checks were successful
Smart Deploy / build-deploy (push) Successful in 2m38s
All checks were successful
Smart Deploy / build-deploy (push) Successful in 2m38s
This commit is contained in:
19
ui_mockup/src/settings/theme.ts
Normal file
19
ui_mockup/src/settings/theme.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Theme, Container } from './types';
|
||||
|
||||
const injectedTheme: string = '%INJECTED_THEME%';
|
||||
const injectedContainer: string = '%INJECTED_CONTAINER%';
|
||||
|
||||
let theme: Theme = 'light';
|
||||
let container: Container = 'none';
|
||||
|
||||
if (injectedTheme === 'light' || injectedTheme === 'dark') {
|
||||
theme = injectedTheme;
|
||||
}
|
||||
if (injectedContainer === 'centered' || injectedContainer === 'none') {
|
||||
container = injectedContainer;
|
||||
}
|
||||
|
||||
export default {
|
||||
theme,
|
||||
container,
|
||||
};
|
||||
Reference in New Issue
Block a user