Skip to content

Commit

Permalink
chore: remove breez and greenlight from onboarding options (#689)
Browse files Browse the repository at this point in the history
* chore: remove breez and greenlight from onboarding options

* chore: remove unused icons
  • Loading branch information
rolznz authored Sep 22, 2024
1 parent 24ad1f2 commit b2b0693
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 48 deletions.
10 changes: 0 additions & 10 deletions frontend/src/components/icons/Breez.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions frontend/src/components/icons/Greenlight.tsx

This file was deleted.

49 changes: 20 additions & 29 deletions frontend/src/screens/setup/SetupNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React, { ReactElement } from "react";
import { useNavigate } from "react-router-dom";
import Container from "src/components/Container";
import TwoColumnLayoutHeader from "src/components/TwoColumnLayoutHeader";
import { BreezIcon } from "src/components/icons/Breez";
import { GreenlightIcon } from "src/components/icons/Greenlight";
import { LDKIcon } from "src/components/icons/LDK";
import { PhoenixdIcon } from "src/components/icons/Phoenixd";
import { Button } from "src/components/ui/button";
Expand All @@ -20,33 +18,26 @@ type BackendTypeDisplayConfig = {
icon: ReactElement;
};

const backendTypeDisplayConfigs: Record<BackendType, BackendTypeDisplayConfig> =
{
LDK: {
title: "LDK",
icon: <LDKIcon />,
},
PHOENIX: {
title: "phoenixd",
icon: <PhoenixdIcon />,
},
BREEZ: {
title: "Breez SDK",
icon: <BreezIcon />,
},
GREENLIGHT: {
title: "Greenlight",
icon: <GreenlightIcon />,
},
LND: {
title: "LND",
icon: <img src={lnd} />,
},
CASHU: {
title: "Cashu Mint",
icon: <img src={cashu} />,
},
};
const backendTypeDisplayConfigs: Partial<
Record<BackendType, BackendTypeDisplayConfig>
> = {
LDK: {
title: "LDK",
icon: <LDKIcon />,
},
PHOENIX: {
title: "phoenixd",
icon: <PhoenixdIcon />,
},
LND: {
title: "LND",
icon: <img src={lnd} />,
},
CASHU: {
title: "Cashu Mint",
icon: <img src={cashu} />,
},
};

const backendTypeDisplayConfigList = Object.entries(
backendTypeDisplayConfigs
Expand Down

0 comments on commit b2b0693

Please sign in to comment.