Skip to content

Commit

Permalink
Fix points tile and reward category tile typescript checking
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgraeme committed Sep 25, 2024
1 parent ba30db9 commit bee5cb9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/components/organisms/PointsTile/PointsTile.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ HalfTile.args = {
tileHeight: TileHeight.Half,
active: true,
type: TileType.Points,
tenantId: 'tenant1',
configuration: {
title: 'Points Balance',
imageUrl: pointsImage,
Expand All @@ -35,9 +34,8 @@ HalfTile.args = {
suffix: undefined,
},
id: '405a6844-f472-4d9e-84b9-20fb55dbd399',
createdAt: new Date(),
updatedAt: new Date(),
visibilityCriteria: 'all',
createdAt: '',
updatedAt: '',
},
};
export const FullTile = Template.bind({});
Expand All @@ -46,7 +44,6 @@ FullTile.args = {
tileHeight: TileHeight.Full,
active: true,
type: TileType.Points,
tenantId: 'tenant1',
configuration: {
title: 'Points Balance',
imageUrl: pointsFull,
Expand All @@ -56,8 +53,7 @@ FullTile.args = {
suffix: undefined,
},
id: '405a6844-f472-4d9e-84b9-20fb55dbd399',
createdAt: new Date(),
updatedAt: new Date(),
visibilityCriteria: 'all',
createdAt: '',
updatedAt: '',
},
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Meta, StoryFn } from '@storybook/react';
import React from 'react';
import { TileHeight } from 'types/tile';
import RewardCategoryTile from './index';

export default {
Expand All @@ -14,6 +15,11 @@ const Template: StoryFn<typeof RewardCategoryTile> = (args) => (
export const Default = Template.bind({});
Default.args = {
tile: {
id: '1',
active: true,
createdAt: '',
updatedAt: '',
tileHeight: TileHeight.Full,
configuration: {
allowDecorationOverlay: true,
rewardCategory: {
Expand All @@ -28,6 +34,11 @@ Default.args = {
export const LongCategoryName = Template.bind({});
LongCategoryName.args = {
tile: {
id: '1',
active: true,
createdAt: '',
updatedAt: '',
tileHeight: TileHeight.Full,
configuration: {
allowDecorationOverlay: true,
rewardCategory: {
Expand All @@ -42,6 +53,11 @@ LongCategoryName.args = {
export const NoDecorationOverlay = Template.bind({});
NoDecorationOverlay.args = {
tile: {
id: '1',
active: true,
createdAt: '',
updatedAt: '',
tileHeight: TileHeight.Full,
configuration: {
allowDecorationOverlay: false,
rewardCategory: {
Expand Down

0 comments on commit bee5cb9

Please sign in to comment.