mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-05-31 17:46:17 +00:00
Fixed home page styles for bootstrap 5
This commit is contained in:
@@ -12,14 +12,8 @@ export const PRIMARY_DARK_COLOR = '#161b22';
|
||||
|
||||
export type Theme = 'dark' | 'light';
|
||||
|
||||
export const changeThemeInMarkup = (theme: Theme) => {
|
||||
const html = document.getElementsByTagName('html');
|
||||
export const changeThemeInMarkup = (theme: Theme) =>
|
||||
document.getElementsByTagName('html')?.[0]?.setAttribute('data-theme', theme);
|
||||
|
||||
html?.[0]?.setAttribute('data-theme', theme);
|
||||
};
|
||||
|
||||
export const isDarkThemeEnabled = (): boolean => {
|
||||
const html = document.getElementsByTagName('html');
|
||||
|
||||
return html?.[0]?.getAttribute('data-theme') === 'dark';
|
||||
};
|
||||
export const isDarkThemeEnabled = (): boolean =>
|
||||
document.getElementsByTagName('html')?.[0]?.getAttribute('data-theme') === 'dark';
|
||||
|
||||
Reference in New Issue
Block a user