diff --git a/playroom/use-scope.tsx b/playroom/use-scope.tsx index 18a6041af7..4b99c5465e 100644 --- a/playroom/use-scope.tsx +++ b/playroom/use-scope.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import {useScreenSize, useTheme, skinVars} from '../src'; import curry from 'lodash/curry'; +import iconKeywords from '../src/generated/mistica-icons/icons-keywords'; import type {Colors} from '../src/skins/types'; import type {Theme} from '../src/theme'; @@ -43,7 +44,12 @@ const usePlayroomState = () => { }; }; -const useScope = (): {theme: Theme; colors: Colors; rawColors: Colors} => { +const useScope = (): { + theme: Theme; + colors: Colors; + rawColors: Colors; + iconKeywords: typeof iconKeywords; +} => { const theme = useTheme(); const screenSize = useScreenSize(); const playroomState = usePlayroomState(); @@ -52,6 +58,7 @@ const useScope = (): {theme: Theme; colors: Colors; rawColors: Colors} => { theme, colors: skinVars.colors, rawColors: skinVars.rawColors, + iconKeywords, ...playroomState, ...screenSize, }; diff --git a/src/generated/mistica-icons/icons-keywords.tsx b/src/generated/mistica-icons/icons-keywords.tsx index 9327fd9597..2f7d6d6404 100644 --- a/src/generated/mistica-icons/icons-keywords.tsx +++ b/src/generated/mistica-icons/icons-keywords.tsx @@ -381,7 +381,7 @@ const iconKeywords: {[key: string]: Array} = { ], audio: ['sound', 'audio signal', 'soundwave', 'sonido', 'sinal de áudio', 'Ton'], aura: ['assistant', 'virtual', 'helper', 'aura', 'aura virtual', 'Helfer'], - 'authentication-failure': [ + 'autentication-failure': [ 'login error', 'access denied', 'error de autenticación', @@ -389,7 +389,7 @@ const iconKeywords: {[key: string]: Array} = { 'Authentifizierungsfehler', 'Zugriff verweigert', ], - 'authentication-success': [ + 'autentication-success': [ 'login confirmation', 'access granted', 'confirmación de inicio de sesión',