Skip to content

Commit

Permalink
fix: asset list responsive style (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa authored Nov 13, 2023
1 parent 00340e0 commit e65bd3d
Show file tree
Hide file tree
Showing 13 changed files with 313 additions and 240 deletions.
23 changes: 16 additions & 7 deletions packages/react/stories/asset/CrossChain.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,25 @@ type Story = StoryObj<typeof meta>;

export const Primary: Story = {
args: {
header: {
total: "144.23",
totalOnAll: "732.16",
onDeposit: () => {
console.log("onDeposit");
title: "Your assets",
multiChainHeader: [
{
label: "Total on Osmosis",
value: "144.23",
},
onWithdraw: () => {
console.log("onWithdraw");
{
label: "Total across all chains",
value: "732.16",
},
],
onDeposit: () => {
console.log("onDeposit");
},
onWithdraw: () => {
console.log("onWithdraw");
},
listTitle: "On Osmosis",
otherListTitle: "On other chains",
list: [
{
imgSrc:
Expand Down
19 changes: 11 additions & 8 deletions packages/react/stories/asset/SingleChain.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ type Story = StoryObj<typeof meta>;

export const Primary: Story = {
args: {
header: {
total: "144.23",
onDeposit: () => {
console.log("onDeposit");
},
onWithdraw: () => {
console.log("onWithdraw");
},
title: "Your asset",
listTitle: "On Osmosis",
onDeposit: () => {
console.log("onDeposit");
},
onWithdraw: () => {
console.log("onWithdraw");
},
singleChainHeader: {
label: "Total on Osmosis",
value: "144.23",
},
list: [
{
Expand Down
33 changes: 0 additions & 33 deletions src/ui/asset-list-header/asset-list-header.css.ts

This file was deleted.

Loading

0 comments on commit e65bd3d

Please sign in to comment.