Skip to content

Commit

Permalink
chore: teamwork makes the dream work
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Apr 24, 2024
1 parent 10eebdb commit 072b2c3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 127 deletions.
2 changes: 1 addition & 1 deletion src/app/features/container/utils/route-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function isHomePage(pathname: RouteUrls) {
}

export function isLandingPage(pathname: RouteUrls) {
return pathname === pathname.match(RouteUrls.Onboarding); // need to match get-started/ledger
return pathname.match(RouteUrls.Onboarding); // need to match get-started/ledger
}

function isOnboardingPage(pathname: RouteUrls) {
Expand Down

This file was deleted.

45 changes: 0 additions & 45 deletions src/app/pages/onboarding/allow-diagnostics/allow-diagnostics.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/app/routes/app-routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { ChooseAccount } from '@app/pages/choose-account/choose-account';
import { ChooseCryptoAssetToFund } from '@app/pages/fund/choose-asset-to-fund/choose-asset-to-fund';
import { FundPage } from '@app/pages/fund/fund';
import { Home } from '@app/pages/home/home';
import { AllowDiagnosticsModal } from '@app/pages/onboarding/allow-diagnostics/allow-diagnostics';
import { BackUpSecretKeyPage } from '@app/pages/onboarding/back-up-secret-key/back-up-secret-key';
import { SignIn } from '@app/pages/onboarding/sign-in/sign-in';
import { WelcomePage } from '@app/pages/onboarding/welcome/welcome';
Expand Down
6 changes: 5 additions & 1 deletion src/app/ui/components/containers/dialog/dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export function Dialog() {
return (
<>
<Button onClick={() => setIsShowing(!isShowing)}>Open</Button>
<Component isShowing={isShowing} onClose={() => setIsShowing(false)}>
<Component
header={<h1>Some Header</h1>}
isShowing={isShowing}
onClose={() => setIsShowing(false)}
>
<h1>Some Dialog</h1>
</Component>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/components/containers/dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface DialogProps {
interface RadixDialogProps extends DialogProps {
children: ReactNode;
footer?: ReactNode;
header?: ReactElement<any, string | JSXElementConstructor<any>>;
header: ReactElement<any, string | JSXElementConstructor<any>>;
onGoBack?(): void;
}

Expand Down

0 comments on commit 072b2c3

Please sign in to comment.