Skip to content

Commit

Permalink
fix(storybook): wrong stub data
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa committed Nov 7, 2023
1 parent 1f6d9d9 commit 039fe63
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/react/stories/staking/staking-asset-header.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import type { Meta, StoryObj } from "@storybook/react";
import { asset_list, assets } from "@chain-registry/osmosis";
import { getAssetByDenom } from "@chain-registry/utils";
import { Asset as OsmosisAsset } from "@chain-registry/types";

import StakingAssetHeader from "../../src/ui/staking-asset-header";

const osmosisAssets: OsmosisAsset[] = [...assets.assets, ...asset_list.assets];
const OSMO = getAssetByDenom(osmosisAssets, "uosmo");

const meta: Meta<typeof StakingAssetHeader> = {
component: StakingAssetHeader,
title: "staking/StakingAssetHeader",
Expand All @@ -15,9 +21,8 @@ type Story = StoryObj<typeof meta>;

export const Primary: Story = {
args: {
imgSrc:
"https://raw.githubusercontent.com/cosmos/chain-registry/master/agoric/images/bld.png",
symbol: "JUNO",
imgSrc: OSMO.logo_URIs?.png,
symbol: OSMO.symbol,
totalAmount: 232.2898,
totalPrice: 1013,
available: 89.231,
Expand Down

0 comments on commit 039fe63

Please sign in to comment.