Skip to content

Commit d33b2da

Browse files
committed
add back the centered layout
1 parent 0c72d4d commit d33b2da

13 files changed

+57
-26
lines changed

storybook/stories/BuyWrapper.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ interface BuyStoryProps {
1313
const BuyExample: React.FC<BuyStoryProps> = ({ disabled }) => (
1414
<App>
1515
<BuyWrapper>
16-
{({ address, toToken }) => <Buy toToken={toToken} disabled={disabled} />}
16+
{({ toToken }) => <Buy toToken={toToken} disabled={disabled} />}
1717
</BuyWrapper>
1818
</App>
1919
);
2020

2121
const meta = {
2222
title: "OnchainKit/Buy",
2323
component: BuyExample,
24+
parameters: {
25+
layout: "centered",
26+
},
2427
tags: ["autodocs"],
2528
argTypes: {
2629
disabled: { control: "boolean" },

storybook/stories/Identity/Identity.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import { base } from "viem/chains";
1212
const meta = {
1313
title: "OnchainKit/Identity/Identity",
1414
component: Identity,
15+
parameters: {
16+
layout: "centered",
17+
},
1518
tags: ["autodocs"],
1619
decorators: [
1720
(Story) => (

storybook/stories/Identity/IdentityAddress.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import type { Meta, StoryObj } from "@storybook/react";
55
const meta = {
66
title: "OnchainKit/Identity/Address",
77
component: Address,
8+
parameters: {
9+
layout: "centered",
10+
},
811
tags: ["autodocs"],
912
decorators: [
1013
(Story) => (

storybook/stories/Identity/IdentityAvatar.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { base } from "viem/chains";
66
const meta = {
77
title: "OnchainKit/Identity/Avatar",
88
component: Avatar,
9+
parameters: {
10+
layout: "centered",
11+
},
912
tags: ["autodocs"],
1013
decorators: [
1114
(Story) => (

storybook/stories/Identity/IdentityBadge.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import type { Meta, StoryObj } from "@storybook/react";
55
const meta = {
66
title: "OnchainKit/Identity/Badge",
77
component: Badge,
8+
parameters: {
9+
layout: "centered",
10+
},
811
tags: ["autodocs"],
912
decorators: [
1013
(Story) => (

storybook/stories/Identity/IdentityCard.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { mainnet } from "wagmi/chains";
77
const meta = {
88
title: "OnchainKit/Identity/Card",
99
component: IdentityCard,
10+
parameters: {
11+
layout: "centered",
12+
},
1013
tags: ["autodocs"],
1114
decorators: [
1215
(Story) => (

storybook/stories/Identity/IdentityName.stories.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
import {
2-
Address,
3-
Avatar,
4-
Identity,
5-
Name,
6-
Badge,
7-
} from "@coinbase/onchainkit/identity";
1+
import { Identity, Name, Badge } from "@coinbase/onchainkit/identity";
82
import App from "../App";
93
import type { Meta, StoryObj } from "@storybook/react";
104
import { base } from "viem/chains";
115

126
const meta = {
137
title: "OnchainKit/Identity/Name",
148
component: Name,
9+
parameters: {
10+
layout: "centered",
11+
},
1512
tags: ["autodocs"],
1613
decorators: [
1714
(Story) => (

storybook/stories/Identity/IdentitySocials.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import { base, mainnet } from "viem/chains";
1313
const meta = {
1414
title: "OnchainKit/Identity/Socials",
1515
component: Socials,
16+
parameters: {
17+
layout: "centered",
18+
},
1619
tags: ["autodocs"],
1720
decorators: [
1821
(Story) => (

storybook/stories/Token/TokenChip.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import type { Meta, StoryObj } from "@storybook/react";
55
const meta = {
66
title: "OnchainKit/Token/Chip",
77
component: TokenChip,
8+
parameters: {
9+
layout: "centered",
10+
},
811
tags: ["autodocs"],
912
decorators: [
1013
(Story) => (

storybook/stories/Token/TokenImage.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import type { Meta, StoryObj } from "@storybook/react";
55
const meta = {
66
title: "OnchainKit/Token/Image",
77
component: TokenImage,
8+
parameters: {
9+
layout: "centered",
10+
},
811
tags: ["autodocs"],
912
decorators: [
1013
(Story) => (

0 commit comments

Comments
 (0)