mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 09:11:57 +10:00
completed translation extraction of profile and work
This commit is contained in:
20
src/shared/AddItemButton.js
Normal file
20
src/shared/AddItemButton.js
Normal file
@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
|
||||
const AddItemButton = ({ onSubmit }) => {
|
||||
return (
|
||||
<div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onSubmit}
|
||||
className="bg-gray-600 hover:bg-gray-700 text-white text-sm font-medium py-2 px-5 rounded"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<i className="material-icons mr-2 font-bold text-base">add</i>
|
||||
<span className="text-sm">Add</span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default AddItemButton;
|
||||
@ -2,16 +2,16 @@ import React from 'react';
|
||||
import Checkbox from './Checkbox';
|
||||
|
||||
const ItemActions = ({
|
||||
item,
|
||||
onChange,
|
||||
type,
|
||||
identifier,
|
||||
dispatch,
|
||||
deleteItem,
|
||||
dispatch,
|
||||
first,
|
||||
moveItemUp,
|
||||
identifier,
|
||||
item,
|
||||
last,
|
||||
moveItemDown,
|
||||
moveItemUp,
|
||||
onChange,
|
||||
type,
|
||||
}) => {
|
||||
return (
|
||||
<div className="flex justify-between">
|
||||
@ -20,7 +20,7 @@ const ItemActions = ({
|
||||
size="2.25rem"
|
||||
checked={item.enable}
|
||||
onChange={v => {
|
||||
onChange(`${identifier}.enable`, v);
|
||||
onChange(`${identifier}enable`, v);
|
||||
}}
|
||||
/>
|
||||
|
||||
|
||||
@ -1,19 +1,22 @@
|
||||
import React from 'react';
|
||||
import { Trans } from 'react-i18next';
|
||||
|
||||
const MarkdownHelpText = ({ className }) => {
|
||||
return (
|
||||
<div className={className}>
|
||||
<p className="text-gray-800 text-xs">
|
||||
You can use{' '}
|
||||
<a
|
||||
className="text-blue-600 hover:underline"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet"
|
||||
>
|
||||
GitHub Flavored Markdown
|
||||
</a>{' '}
|
||||
to style this section of text.
|
||||
<Trans i18nKey="markdownHelpText">
|
||||
You can use
|
||||
<a
|
||||
className="text-blue-600 hover:underline"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet"
|
||||
>
|
||||
GitHub Flavored Markdown
|
||||
</a>
|
||||
to style this section of text.
|
||||
</Trans>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user