extracted strings from fonts tab

This commit is contained in:
Amruth Pillai
2020-03-30 11:16:37 +05:30
parent a30c9ffd4b
commit 154e4d22a8
4 changed files with 27 additions and 13 deletions

View File

@ -16,8 +16,8 @@ const RightSidebar = () => {
const { state, dispatch } = context;
const { data, theme } = state;
const tabs = [t('templates.title'), t('colors.title'), 'Fonts', 'Actions', 'About'];
const [currentTab, setCurrentTab] = useState(t('colors.title'));
const tabs = [t('templates.title'), t('colors.title'), t('fonts.title'), 'Actions', 'About'];
const [currentTab, setCurrentTab] = useState(t('fonts.title'));
const onChange = (key, value) => {
dispatch({
type: 'on_input',
@ -36,7 +36,7 @@ const RightSidebar = () => {
return <TemplatesTab theme={theme} onChange={onChange} />;
case t('colors.title'):
return <ColorsTab theme={theme} onChange={onChange} />;
case 'Fonts':
case t('fonts.title'):
return <FontsTab theme={theme} onChange={onChange} />;
case 'Actions':
return <ActionsTab data={data} theme={theme} dispatch={dispatch} />;