Skip to content

Commit

Permalink
Update staking providers list
Browse files Browse the repository at this point in the history
  • Loading branch information
r-czajkowski committed Aug 11, 2023
1 parent 875bafd commit 4dac2ba
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 81 deletions.
64 changes: 16 additions & 48 deletions src/components/StakingProvidersList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import { List, ListProps } from "@threshold-network/components"
import { ExternalHref } from "../../enums"
import DetailedLinkListItem from "../DetailedLinkListItem"
import StakedLogo from "../../static/images/stakingProviders/StakedLogo.png"
import BisonTrailsLogo from "../../static/images/stakingProviders/BisonTrailsLogo.png"
import BoarLogo from "../../static/images/stakingProviders/BoarLogo.png"
import FigmentLogo from "../../static/images/stakingProviders/FigmentLogo.png"
import LowFeeValidationLogo from "../../static/images/stakingProviders/LowFeeValidationLogo.png"
import AnkrLogo from "../../static/images/stakingProviders/AnkrLogo.png"
import P2PValidatorLogo from "../../static/images/stakingProviders/P2PValidatorLogo.png"
import InfStonesLogo from "../../static/images/stakingProviders/InfStonesLogo.png"

Expand Down Expand Up @@ -36,50 +32,30 @@ const providers: ProviderItem[] = [
imgSrc: BoarLogo,
},
{
name: "P2P Validator",
email: "hello@p2p.org",
name: "DELIGHT",
email: "contact@delightlabs.io",
link: ExternalHref.delight,
// TODO: add img
imgSrc: undefined,
},
{
name: "InfStones",
email: "sales@infstones.com",
link: ExternalHref.infStones,
imgSrc: InfStonesLogo,
},
{
name: "P2P",
email: "am@p2p.org",
link: ExternalHref.p2pValidator,
imgSrc: P2PValidatorLogo,
},
{
name: "Staked",
email: "togilvie@staked.us",
email: "staked@staked.us",
link: ExternalHref.stakedUs,
imgSrc: StakedLogo,
},
{
name: "BisonTrails",
email: "viktor@bisontrails.co",
link: ExternalHref.bisonTrails,
imgSrc: BisonTrailsLogo,
},
{
name: "Figment",
email: "yannick@figment.io",
link: ExternalHref.figment,
imgSrc: FigmentLogo,
},
{
name: "Low Fee Validation",
email: "eduardo@lowfeevalidation.com",
link: ExternalHref.lowFeeValidation,
imgSrc: LowFeeValidationLogo,
},
]

const preOnlyProviders = [
{
name: "Ankr",
email: "sales@ankr.com",
link: ExternalHref.ankr,
imgSrc: AnkrLogo,
},
{
name: "InfStones",
email: "contact@infstones.com",
link: ExternalHref.infStones,
imgSrc: InfStonesLogo,
},
]

export const AllAppsProvidersList: FC<ListProps> = (props) => {
Expand All @@ -89,11 +65,3 @@ export const AllAppsProvidersList: FC<ListProps> = (props) => {
</List>
)
}

export const PreOnlyProvidersList: FC<ListProps> = (props) => {
return (
<List mt="6" spacing="4" {...props}>
{preOnlyProviders.map(renderProviderListItem)}
</List>
)
}
1 change: 1 addition & 0 deletions src/enums/externalHref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ export enum ExternalHref {
btcConfirmations = "https://en.bitcoin.it/wiki/Confirmation",
mintersAndGuardiansDocs = "https://blog.threshold.network/minters-guardians-and-a-strong-tbtc/",
tBTCDuneDashboard = "https://dune.com/threshold/tbtc",
delight = "https://delightlabs.io",
}

This file was deleted.

4 changes: 0 additions & 4 deletions src/pages/Staking/HowItWorks/StakingOverview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { useTStakingContract } from "../../../../web3/hooks"
import { AuthorizingApplicationsCard } from "./AuthorizingApplicationsCard"
import { PageComponent } from "../../../../types"
import { featureFlags } from "../../../../constants"
import { ProvidersCardNonMAS } from "./ProvidersCardNonMAS"

const gridTemplate = featureFlags.MULTI_APP_STAKING
? {
Expand Down Expand Up @@ -71,9 +70,6 @@ const StakingOverview: PageComponent = () => {
)}
<StakingActionsCard gridArea="staking-actions" />
<AboutAddressesCard gridArea="addresses" alignSelf="flex-start" />
{!featureFlags.MULTI_APP_STAKING && (
<ProvidersCardNonMAS gridArea="providers-card-non-mas" />
)}
</Grid>
)
}
Expand Down
11 changes: 1 addition & 10 deletions src/pages/Staking/HowItWorks/StakingProviders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import {
} from "@threshold-network/components"
import { PageComponent } from "../../../../types"
import { featureFlags } from "../../../../constants"
import {
AllAppsProvidersList,
PreOnlyProvidersList,
} from "../../../../components/StakingProvidersList"
import { AllAppsProvidersList } from "../../../../components/StakingProvidersList"

const StakingProviders: PageComponent = () => {
return (
Expand All @@ -32,19 +29,13 @@ const StakingProviders: PageComponent = () => {
"providers"
"pre-providers"
`,
xl: `"providers pre-providers"`,
}}
gridGap="4"
>
<Card gridArea="providers" h="fit-content">
<BoxLabel status="secondary">All Applications</BoxLabel>
<AllAppsProvidersList />
</Card>

<Card gridArea="pre-providers" h="fit-content">
<BoxLabel status="secondary">Pre only</BoxLabel>
<PreOnlyProvidersList />
</Card>
</Grid>
</Card>
)
Expand Down
Binary file removed src/static/images/stakingProviders/AnkrLogo.png
Binary file not shown.
Binary file not shown.
Binary file removed src/static/images/stakingProviders/FigmentLogo.png
Binary file not shown.
Binary file not shown.

0 comments on commit 4dac2ba

Please sign in to comment.