completed project, base structure to create more templates

This commit is contained in:
Amruth Pillai
2020-03-25 16:38:36 +05:30
parent d5dcd38edb
commit 7bec7b5d49
7 changed files with 54 additions and 20 deletions

View File

@ -10,6 +10,7 @@ const ActionsTab = ({ data, theme, dispatch }) => {
fr.addEventListener('load', () => {
const importedObject = JSON.parse(fr.result);
dispatch({ type: 'import_data', payload: importedObject });
dispatch({ type: 'save_data' });
});
fr.readAsText(event.target.files[0]);
};
@ -25,6 +26,7 @@ const ActionsTab = ({ data, theme, dispatch }) => {
const resetEverything = () => {
dispatch({ type: 'reset' });
dispatch({ type: 'save_data' });
};
return (
@ -117,6 +119,24 @@ const ActionsTab = ({ data, theme, dispatch }) => {
</div>
</button>
</div>
<hr className="my-6" />
<p className="text-xs font-gray-600 text-center">
Reactive Resume is a project by{' '}
<a
className="hover:underline"
href="https://www.amruthpillai.com/"
rel="noopener noreferrer"
target="_blank"
>
<strong>Amruth Pillai</strong>
</a>{' '}
in hopes of allowing anyone to make beautiful resumes and get equal job opportunities.
<br />
<br />
Thank you for using Reactive Resume!
</p>
</div>
);
};