From 477f55edd18ce507fd43113b2d96aea7b4a8de27 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Fri, 26 Jan 2024 09:57:21 +0100 Subject: [PATCH 1/2] feat: my new block --- .../Organisms/PageContent/MyNewBlock.stories.ts | 9 +++++++++ .../src/components/Organisms/PageContent/MyNewBlock.tsx | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 packages/ui/src/components/Organisms/PageContent/MyNewBlock.stories.ts create mode 100644 packages/ui/src/components/Organisms/PageContent/MyNewBlock.tsx diff --git a/packages/ui/src/components/Organisms/PageContent/MyNewBlock.stories.ts b/packages/ui/src/components/Organisms/PageContent/MyNewBlock.stories.ts new file mode 100644 index 000000000..fdcf5c286 --- /dev/null +++ b/packages/ui/src/components/Organisms/PageContent/MyNewBlock.stories.ts @@ -0,0 +1,9 @@ +import { Meta, StoryObj } from '@storybook/react'; + +import { MyNewBlock } from './MyNewBlock'; + +export default { + component: MyNewBlock, +} satisfies Meta; + +export const Test = {} satisfies StoryObj; diff --git a/packages/ui/src/components/Organisms/PageContent/MyNewBlock.tsx b/packages/ui/src/components/Organisms/PageContent/MyNewBlock.tsx new file mode 100644 index 000000000..a9291e5e8 --- /dev/null +++ b/packages/ui/src/components/Organisms/PageContent/MyNewBlock.tsx @@ -0,0 +1,5 @@ +import React from 'react'; + +export function MyNewBlock() { + return
Test
; +} From df2da3a1f919d39421004be06ba979c851bf9898 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Fri, 26 Jan 2024 09:58:48 +0100 Subject: [PATCH 2/2] feat: change caption color --- packages/ui/src/components/Organisms/PageContent/BlockMedia.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/Organisms/PageContent/BlockMedia.tsx b/packages/ui/src/components/Organisms/PageContent/BlockMedia.tsx index a2d9ec34d..30ba37ae1 100644 --- a/packages/ui/src/components/Organisms/PageContent/BlockMedia.tsx +++ b/packages/ui/src/components/Organisms/PageContent/BlockMedia.tsx @@ -13,7 +13,7 @@ export function BlockMedia(props: BlockMediaFragment) {
{props.caption ? ( -
+
) : null}