@@ -13,15 +13,7 @@ const meta: Meta<typeof IconLabel> = {
13
13
argTypes : {
14
14
type : {
15
15
control : "select" ,
16
- options : [
17
- "default" ,
18
- "ai-evaluation" ,
19
- "date" ,
20
- "dateWithPrefix" ,
21
- "reviews" ,
22
- "address" ,
23
- "social" ,
24
- ] ,
16
+ options : [ "default" , "ai-evaluation" , "date" , "dateWithPrefix" , "address" , "social" ] ,
25
17
} ,
26
18
platform : {
27
19
control : "select" ,
@@ -58,20 +50,6 @@ const meta: Meta<typeof IconLabel> = {
58
50
} ,
59
51
if : { arg : "type" , eq : "period" } ,
60
52
} ,
61
- posReviews : {
62
- control : {
63
- type : "number" ,
64
- min : 0 ,
65
- } ,
66
- if : { arg : "type" , eq : "reviews" } ,
67
- } ,
68
- negReviews : {
69
- control : {
70
- type : "number" ,
71
- min : 0 ,
72
- } ,
73
- if : { arg : "type" , eq : "reviews" } ,
74
- } ,
75
53
address : {
76
54
control : "text" ,
77
55
if : { arg : "type" , eq : "address" } ,
@@ -114,8 +92,6 @@ export const Playground: Story = {
114
92
percent : 77 , // Default for evaluation
115
93
date : new Date ( ) , // Default for date
116
94
prefix : "Applied on: " , // Default for dateWithPrefix
117
- posReviews : 3 , // Default for reviews
118
- negReviews : 3 , // Default for reviews
119
95
address : "0xE307051C410e970b861CC55CBFD5Acc7BB477750" , // Default for address
120
96
link : "https://github.com/user" , // Default for social
121
97
isVerified : false , // Default for social
@@ -261,16 +237,3 @@ export const SocialTwitter: Story = {
261
237
expect ( linkText ) . toBeInTheDocument ( ) ;
262
238
} ,
263
239
} ;
264
- // Reviews Label Story
265
- export const Reviews : Story = {
266
- args : {
267
- type : "reviews" ,
268
- posReviews : 3 ,
269
- negReviews : 2 ,
270
- } ,
271
- play : async ( { canvasElement } ) => {
272
- const canvas = within ( canvasElement ) ;
273
- const reviewsText = await canvas . findByText ( "5 Reviews" ) ;
274
- expect ( reviewsText ) . toBeInTheDocument ( ) ;
275
- } ,
276
- } ;
0 commit comments