chore(react): adding prettier and formating files

This commit is contained in:
Ely Lucas
2020-12-07 09:31:33 -07:00
committed by GitHub
parent 01afdc42e5
commit 91aaaab71a
163 changed files with 3205 additions and 2535 deletions

View File

@ -1,8 +1,7 @@
const ids: { [key: string]: number; } = { main: 0 };
const ids: { [key: string]: number } = { main: 0 };
export const generateId = (type = 'main') => {
const id = (ids[type] ?? 0) + 1;
ids[type] = id;
return (id).toString();
return id.toString();
};