Skip to content

Commit

Permalink
add icon keywords to playroom scope (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny authored Oct 17, 2023
1 parent 286e385 commit 89ea4ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion playroom/use-scope.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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();
Expand All @@ -52,6 +58,7 @@ const useScope = (): {theme: Theme; colors: Colors; rawColors: Colors} => {
theme,
colors: skinVars.colors,
rawColors: skinVars.rawColors,
iconKeywords,
...playroomState,
...screenSize,
};
Expand Down
4 changes: 2 additions & 2 deletions src/generated/mistica-icons/icons-keywords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,15 +381,15 @@ const iconKeywords: {[key: string]: Array<string>} = {
],
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',
'acesso negado',
'Authentifizierungsfehler',
'Zugriff verweigert',
],
'authentication-success': [
'autentication-success': [
'login confirmation',
'access granted',
'confirmación de inicio de sesión',
Expand Down

1 comment on commit 89ea4ff

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-klwuo9kl1-tuentisre.vercel.app

Built with commit 89ea4ff.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.