add icon and theme tests
This commit is contained in:
parent
98eccea2b5
commit
aa61b2fb76
6 changed files with 61 additions and 14 deletions
|
@ -27,7 +27,7 @@ export const setTheme = (theme: string) => {
|
|||
* Function that gets the saved theme from localStorage or returns the default
|
||||
* @returns {IThemeProps} the saved theme or the default theme
|
||||
*/
|
||||
const getTheme = (): IThemeProps => {
|
||||
export const getTheme = (): IThemeProps => {
|
||||
let selectedTheme = defaultTheme;
|
||||
|
||||
if (localStorage.getItem("theme") !== null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue