Closed Free-FreeThinker closed 4 years ago
@Free-FreeThinker thank you a ton for this PR. The issue with compiling has to do with the way we are exporting sparkswap-desktop
(which is location.ts
was still inside the repo when it should have been removed instead).
Im going to port your fixes and put them in the next release. if you have any questions, let me know
An example is that Onboarding.tsx
still exists in this repo too, however everything from onboarding was moved
Fix a few compile issues:
Address https://github.com/sparkswap/sparkswap-desktop/issues/5 that duplicated
formatters.ts
andformatters.tsx
causing build failure.Remove
location.ts
as it's now replaced byjurisdiction.ts
, and it's causing compile failure as it's trying to importgetApprovedLocations
fromserver.ts
, which had already been renamed. Error message:Module '"src/sparkswap-desktop/src/web/domain/server"' has no exported member 'getApprovedLocations'. TS2305
Use capitalized 1st letter for both
Onboarding
module andOnboarding
directory, and fix compile errorFile name 'src/sparkswap-desktop/src/web/ui/Onboarding.tsx' differs from already included file name 'src/sparkswap-desktop/src/web/ui/onboarding.tsx' only in casing. TS1149
Fix missing
onboardingVersion
property ofRegisterDialogProps
inOnboarding.tsx
. Error message:TypeScript error in src/sparkswap-desktop/src/web/ui/App.tsx(257,11): Type '{ onProceed: () => Promise<void>; isOpen: boolean; onClose: () => void; onboardingVersion: number | undefined; uuid: string | undefined; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<RegisterDialog> & Readonly<RegisterDialogProps> & Readonly<...>'. Property 'onboardingVersion' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<RegisterDialog> & Readonly<RegisterDialogProps> & Readonly<...>'. TS2322