1r00t / typr

monkeytype clone in sveltekit
typr-steel.vercel.app
20 stars 4 forks source link

move the reset function from the TextInput component #4

Open 1r00t opened 2 years ago

1r00t commented 2 years ago

currently the reset functionality is all over the place. move it to somewhere central like a utils file or something.

1r00t commented 2 years ago

maybe create a reset button component. or move it to the index.svelte. a utility file would not be a good solution I guess. because all components have some sort of reset function that needs to get triggered. I have no good idea yet