add icon and theme tests

This commit is contained in:
Bastian Meissner 2021-06-14 21:10:28 +02:00
parent 98eccea2b5
commit aa61b2fb76
6 changed files with 61 additions and 14 deletions

View file

@ -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) {