Skip to content

Commit

Permalink
Update remove wallet block
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-aac committed Oct 25, 2023
1 parent 12db515 commit 44d176f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 72 deletions.
17 changes: 0 additions & 17 deletions workspaces/cms-config/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions workspaces/cms-data/src/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -152,7 +153,6 @@ export type HeadingVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
export type Block =
| MarkdownBlock
| CommunityEventsBlock
| WalletsBlock
| BasicCardBlock
| ImageIconLinkCardBlock
| HeroBlock
Expand Down
9 changes: 0 additions & 9 deletions workspaces/website/src/blocks/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -156,14 +155,6 @@ export function Block({ block, locale }: Props): JSX.Element | null {
}}
/>
);
} else if (block.type === "wallets") {
return (
<BlockWallets
params={{
locale,
}}
/>
);
} else {
// this will report type error if there is unhandled block.type
block satisfies never;
Expand Down
2 changes: 2 additions & 0 deletions workspaces/website/src/blocks/ListCardItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface Icon {
interface ListCardItems {
title: string;
description: string;
discordHandle: string;
linkUrl: string;
icons: Icon;
website_url: string;
Expand Down Expand Up @@ -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}
/>
);
Expand Down

This file was deleted.

0 comments on commit 44d176f

Please sign in to comment.