Skip to content

Commit

Permalink
Add white bg for dialog view stories
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarvu committed Dec 9, 2024
1 parent 3acb78f commit 6980bbe
Show file tree
Hide file tree
Showing 25 changed files with 30 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const meta: Meta<typeof BorrowView> = {
const form = useForm() as any
return <BorrowView {...args} form={form} />
},
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
args: {
selectableAssets: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const meta: Meta<typeof ClaimRewardsView> = {
},
}),
WithTooltipProvider(),
WithClassname('max-w-xl'),
WithClassname('max-w-xl bg-primary'),
],
args: {
objectives: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SuccessView } from './SuccessView'
const meta: Meta<typeof SuccessView> = {
title: 'Features/Dialogs/Views/ClaimRewards/Success',
component: SuccessView,
decorators: [WithClassname('max-w-xl')],
decorators: [WithClassname('max-w-xl bg-primary')],
args: {
claimedRewards: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { CollateralView } from './CollateralView'

const meta: Meta<typeof CollateralView> = {
title: 'Features/Dialogs/Views/Collateral',
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
component: CollateralView,
args: {
collateral: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SuccessView } from './SuccessView'
const meta: Meta<typeof SuccessView> = {
title: 'Features/Dialogs/Views/Success',
component: SuccessView,
decorators: [WithClassname('max-w-xl')],
decorators: [WithClassname('max-w-xl bg-primary')],
args: {
token: tokens.ETH,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SuccessView } from './SuccessView'
const meta: Meta<typeof SuccessView> = {
title: 'Features/Dialogs/Views/Success',
component: SuccessView,
decorators: [WithClassname('max-w-xl')],
decorators: [WithClassname('max-w-xl bg-primary')],
args: {
tokenWithValue: {
token: tokens.DAI,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const meta: Meta<typeof ConvertStablesForm> = {

return <ConvertStablesForm form={form} formFields={formFields} />
},
decorators: [WithClassname('max-w-xl')],
decorators: [WithClassname('max-w-xl bg-primary')],
}

export default meta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const psmStables = [tokens.DAI.symbol, tokens.USDC.symbol, tokens.USDS.symbol]

const meta: Meta<typeof ConvertStablesView> = {
title: 'Features/Dialogs/Views/ConvertStables/ConvertStablesView',
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
component: (args) => {
const { form, formFields } = useConvertStablesForm({
tokensInfo: mockTokensInfo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SuccessView } from './SuccessView'
const meta: Meta<typeof SuccessView> = {
title: 'Features/Dialogs/Views/ConvertStables/SuccessView',
component: SuccessView,
decorators: [WithClassname('max-w-xl'), ZeroAllowanceWagmiDecorator()],
decorators: [WithClassname('max-w-xl bg-primary'), ZeroAllowanceWagmiDecorator()],
args: {
txOverview: {
status: 'success',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const meta: Meta<typeof DepositView> = {
const form = useForm() as any
return <DepositView {...args} form={form} />
},
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
args: {
initialToken: tokens.USDC,
selectableAssets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EModeView } from './EModeView'

const meta: Meta<typeof EModeView> = {
title: 'Features/Dialogs/Views/EMode',
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider(), withRouter],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider(), withRouter],
component: EModeView,
args: {
eModeCategories: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SuccessView } from './SuccessView'
const meta: Meta<typeof SuccessView> = {
title: 'Features/Dialogs/Views/Success',
component: SuccessView,
decorators: [WithClassname('max-w-xl')],
decorators: [WithClassname('max-w-xl bg-primary')],
}

export default meta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const meta: Meta<typeof RepayView> = {
const form = useForm() as any
return <RepayView {...args} form={form} />
},
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
args: {
debtAsset: tokens.DAI,
repayOptions: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SandboxDialogView } from './SandboxDialogView'
const meta: Meta<typeof SandboxDialogView> = {
title: 'Features/Dialogs/Views/Sandbox',
component: SandboxDialogView,
decorators: [WithClassname('max-w-xl')],
decorators: [WithClassname('max-w-xl bg-primary')],
args: {
startSandbox: () => {},
isInSandbox: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const meta: Meta<typeof SavingsDepositView> = {
const form = useForm() as any
return <SavingsDepositView {...args} form={form} />
},
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
args: {
selectableAssets: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DowngradeUSDSToDaiView } from './DowngradeUSDSToDaiView'

const meta: Meta<typeof DowngradeUSDSToDaiView> = {
title: 'Features/Dialogs/Views/Migrate/Downgrade',
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider(), withRouter],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider(), withRouter],
component: (args) => {
const form = useForm() as any
return <DowngradeUSDSToDaiView {...args} form={form} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { UpgradeView } from './UpgradeView'

const meta: Meta<typeof UpgradeView> = {
title: 'Features/Dialogs/Views/Migrate/Upgrade',
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
component: (args) => {
const form = useForm() as any
return <UpgradeView {...args} form={form} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ const sendArgs: Partial<SavingsWithdrawViewProps> = {

const meta: Meta<typeof SavingsWithdrawView> = {
title: 'Features/Dialogs/Views/Savings/Withdraw',
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider(), withRouter()],
decorators: [
ZeroAllowanceWagmiDecorator(),
WithClassname('max-w-xl bg-primary'),
WithTooltipProvider(),
withRouter(),
],
component: (args) => {
const form = useForm() as any
return args.sendModeExtension ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SuccessView } from './SuccessView'
const meta: Meta<typeof SuccessView> = {
title: 'Features/Dialogs/Views/Savings/Withdraw/Success',
component: SuccessView,
decorators: [WithClassname('max-w-xl'), ZeroAllowanceWagmiDecorator(), withRouter],
decorators: [WithClassname('max-w-xl bg-primary'), ZeroAllowanceWagmiDecorator(), withRouter],
args: {
tokenToWithdraw: {
token: tokens.DAI,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SelectNetworkDialogView } from './SelectNetworkDialogView'
const meta: Meta<typeof SelectNetworkDialogView> = {
title: 'Features/Dialogs/Views/SelectNetwork',
component: SelectNetworkDialogView,
decorators: [WithClassname('max-w-xl')],
decorators: [WithClassname('max-w-xl bg-primary')],
args: {
chains: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const meta: Meta<typeof WithdrawView> = {
const form = useForm() as any
return <WithdrawView {...args} form={form} />
},
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
args: {
withdrawOptions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ClaimView } from './ClaimView'
const meta: Meta<typeof ClaimView> = {
title: 'Features/FarmDetails/Dialogs/Claim/Views/ClaimView',
component: ClaimView,
decorators: [WithClassname('max-w-xl'), ZeroAllowanceWagmiDecorator()],
decorators: [WithClassname('max-w-xl bg-white'), ZeroAllowanceWagmiDecorator()],
args: {
txOverview: {
reward: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const meta: Meta<typeof StakeView> = {
const form = useForm() as any
return <StakeView {...args} form={form} />
},
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
args: {
farm,
selectableAssets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SuccessView } from './SuccessView'
const meta: Meta<typeof SuccessView> = {
title: 'Features/FarmDetails/Dialogs/Views/Unstake/SuccessView',
component: SuccessView,
decorators: [WithClassname('max-w-xl'), ZeroAllowanceWagmiDecorator()],
decorators: [WithClassname('max-w-xl bg-primary'), ZeroAllowanceWagmiDecorator()],
args: {
outcome: {
token: tokens.DAI,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const meta: Meta<typeof UnstakeView> = {
})
return <UnstakeView {...args} form={form} />
},
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl'), WithTooltipProvider()],
decorators: [ZeroAllowanceWagmiDecorator(), WithClassname('max-w-xl bg-primary'), WithTooltipProvider()],
args: {
farm,
selectableAssets: [
Expand Down

0 comments on commit 6980bbe

Please sign in to comment.