mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(react): adding prettier and formating files
This commit is contained in:
@ -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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user