This PR attempts to fix both #940 and #947. Any logic dealing with invites was moved to the useInvites hook to help get useRoller smaller and clean up some of the component files.
Invites now only ever get added if they are correct, so we either show a status of 'updating' or we show the correct number. Also when generating invites for the first time, we give a modal explaining what's happening and showing progress.
In addition, I did a bit of drive by refactoring to convert some files to Typescript and also removing any unused files, like the old useInvites and anything to do with L1 invites.
This PR attempts to fix both #940 and #947. Any logic dealing with invites was moved to the useInvites hook to help get useRoller smaller and clean up some of the component files.
Invites now only ever get added if they are correct, so we either show a status of 'updating' or we show the correct number. Also when generating invites for the first time, we give a modal explaining what's happening and showing progress.
In addition, I did a bit of drive by refactoring to convert some files to Typescript and also removing any unused files, like the old useInvites and anything to do with L1 invites.