diff --git a/workspaces/cms-config/src/blocks.ts b/workspaces/cms-config/src/blocks.ts
index 6666925cd52..31aeee47ed0 100644
--- a/workspaces/cms-config/src/blocks.ts
+++ b/workspaces/cms-config/src/blocks.ts
@@ -330,23 +330,6 @@ export const blocks = [
},
],
},
- {
- name: "wallets",
- label: "Wallets block",
- widget: "object",
- fields: [
- {
- name: "type",
- widget: "hidden",
- },
- {
- name: "no_of_items",
- required: false,
- widget: "string",
- crowdin: false
- },
- ],
- },
{
name: "basic_card",
label: "Basic card",
diff --git a/workspaces/cms-data/src/pages.ts b/workspaces/cms-data/src/pages.ts
index 15583ed3b0c..fac938a14f7 100644
--- a/workspaces/cms-data/src/pages.ts
+++ b/workspaces/cms-data/src/pages.ts
@@ -16,10 +16,6 @@ export interface AmbassadorsListBlock {
readonly type: "ambassadors_list";
}
-export interface WalletsBlock {
- readonly type: "wallets";
- readonly no_of_items: number;
-}
export interface BasicCardBlock {
readonly type: "basic_card";
readonly title: string;
@@ -51,12 +47,17 @@ interface Icon {
interface ListCardItems {
title: string;
+ discordHandle: string;
description: string;
linkUrl: string;
icons: Icon;
website_url: string;
twitter: string;
image: string;
+ type_list: {
+ type: string;
+ url: string;
+ }[];
}
export interface ListCardItemsBlock {
readonly type: "card_list";
@@ -152,7 +153,6 @@ export type HeadingVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
export type Block =
| MarkdownBlock
| CommunityEventsBlock
- | WalletsBlock
| BasicCardBlock
| ImageIconLinkCardBlock
| HeroBlock
diff --git a/workspaces/website/src/blocks/Block.tsx b/workspaces/website/src/blocks/Block.tsx
index 4f05a16bbb9..ecbef2db273 100644
--- a/workspaces/website/src/blocks/Block.tsx
+++ b/workspaces/website/src/blocks/Block.tsx
@@ -8,7 +8,6 @@ import { HeroImage } from "@ui/HeroImage/HeroImage";
import { BlockGrouping } from "./BlockGrouping";
import { ImageIconCard } from "../components/Card/ImageIconCard";
import ListCardItems from "./ListCardItems";
-import BlockWallets from "./dataBlocks/BlockWallets/BlockWallets";
import { Container } from "./Container";
import { LinkList } from "./LinkList";
import { AccordionItem, AccordionRoot } from "./AccordionBlock";
@@ -156,14 +155,6 @@ export function Block({ block, locale }: Props): JSX.Element | null {
}}
/>
);
- } else if (block.type === "wallets") {
- return (
-
- );
} else {
// this will report type error if there is unhandled block.type
block satisfies never;
diff --git a/workspaces/website/src/blocks/ListCardItems.tsx b/workspaces/website/src/blocks/ListCardItems.tsx
index 85cbb8e8ab0..2791a6797a7 100644
--- a/workspaces/website/src/blocks/ListCardItems.tsx
+++ b/workspaces/website/src/blocks/ListCardItems.tsx
@@ -12,6 +12,7 @@ interface Icon {
interface ListCardItems {
title: string;
description: string;
+ discordHandle: string;
linkUrl: string;
icons: Icon;
website_url: string;
@@ -52,6 +53,7 @@ Props): JSX.Element {
key={`${card.title}-${i}`}
description={card.description}
title={card.title}
+ discordHandle={card.discordHandle}
type_list={card.type_list}
/>
);
diff --git a/workspaces/website/src/blocks/dataBlocks/BlockWallets/BlockWallets.tsx b/workspaces/website/src/blocks/dataBlocks/BlockWallets/BlockWallets.tsx
deleted file mode 100644
index 1504f79ffcc..00000000000
--- a/workspaces/website/src/blocks/dataBlocks/BlockWallets/BlockWallets.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { Box, Flex, Container } from "@chakra-ui/react";
-import { ListCard } from "@ui/Card/ListCard";
-import { getWallets } from "@starknet-io/cms-data/src/wallets";
-import { useAsync } from "react-streaming";
-import { usePageContext } from "src/renderer/PageContextProvider";
-
-interface Props extends LocaleProps {
- noOfItems?: number;
-}
-
-export default function BlockWallets({
- noOfItems,
- params: { locale },
-}: Props): JSX.Element {
- const pageContext = usePageContext();
- const wallets = useAsync(['getWallets', locale], () => getWallets(locale, pageContext.context));
-
- return (
-
-
-
- {(wallets).slice(0, noOfItems).map((wallet, i) => {
- return (
-
- );
- })}
-
-
-
- );
-}