mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 10:11:31 +10:00
extract strings from actions tab
This commit is contained in:
@ -16,8 +16,14 @@ const RightSidebar = () => {
|
||||
const { state, dispatch } = context;
|
||||
const { data, theme } = state;
|
||||
|
||||
const tabs = [t('templates.title'), t('colors.title'), t('fonts.title'), 'Actions', 'About'];
|
||||
const [currentTab, setCurrentTab] = useState(t('fonts.title'));
|
||||
const tabs = [
|
||||
t('templates.title'),
|
||||
t('colors.title'),
|
||||
t('fonts.title'),
|
||||
t('actions.title'),
|
||||
'About',
|
||||
];
|
||||
const [currentTab, setCurrentTab] = useState(t('actions.title'));
|
||||
const onChange = (key, value) => {
|
||||
dispatch({
|
||||
type: 'on_input',
|
||||
@ -38,7 +44,7 @@ const RightSidebar = () => {
|
||||
return <ColorsTab theme={theme} onChange={onChange} />;
|
||||
case t('fonts.title'):
|
||||
return <FontsTab theme={theme} onChange={onChange} />;
|
||||
case 'Actions':
|
||||
case t('actions.title'):
|
||||
return <ActionsTab data={data} theme={theme} dispatch={dispatch} />;
|
||||
case 'About':
|
||||
return <AboutTab />;
|
||||
|
||||
Reference in New Issue
Block a user