mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +10:00
use translated value for Add
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const AddItemButton = ({ onSubmit }) => {
|
const AddItemButton = ({ onSubmit }) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
@ -10,7 +13,7 @@ const AddItemButton = ({ onSubmit }) => {
|
|||||||
>
|
>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<i className="material-icons mr-2 font-bold text-base">add</i>
|
<i className="material-icons mr-2 font-bold text-base">add</i>
|
||||||
<span className="text-sm">Add</span>
|
<span className="text-sm">{t('buttons.add.label')}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user