File tree Expand file tree Collapse file tree 7 files changed +213
-142
lines changed Expand file tree Collapse file tree 7 files changed +213
-142
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ function TransactionsLayout(props: {
60
60
</ div >
61
61
</ div >
62
62
< Link href = { `${ engineBaseSlug } /dedicated` } >
63
- < Button variant = "outline" > View dedicated engines </ Button >
63
+ < Button variant = "outline" > View Dedicated Engine </ Button >
64
64
</ Link >
65
65
</ div >
66
66
</ div >
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const meta = {
5
5
title : "Engine/EngineFooterCard" ,
6
6
component : EngineFooterCard ,
7
7
args : {
8
- team_slug : "demo-team" ,
9
- project_slug : "demo-project" ,
8
+ teamSlug : "demo-team" ,
9
+ projectSlug : "demo-project" ,
10
10
} ,
11
11
decorators : [
12
12
( Story ) => (
@@ -20,26 +20,8 @@ const meta = {
20
20
export default meta ;
21
21
type Story = StoryObj < typeof meta > ;
22
22
23
- export const Growth : Story = {
24
- args : {
25
- teamPlan : "growth" ,
26
- } ,
27
- } ;
23
+ export const Growth : Story = { } ;
28
24
29
- export const Accelerate : Story = {
30
- args : {
31
- teamPlan : "accelerate" ,
32
- } ,
33
- } ;
25
+ export const Scale : Story = { } ;
34
26
35
- export const Scale : Story = {
36
- args : {
37
- teamPlan : "scale" ,
38
- } ,
39
- } ;
40
-
41
- export const Pro : Story = {
42
- args : {
43
- teamPlan : "pro" ,
44
- } ,
45
- } ;
27
+ export const Pro : Story = { } ;
Original file line number Diff line number Diff line change 1
- import type { Team } from "@/api/team" ;
2
1
import { Button } from "@/components/ui/button" ;
3
2
import { TrackedLinkTW } from "@/components/ui/tracked-link" ;
4
3
import { ArrowRightIcon , DownloadIcon , ExternalLinkIcon } from "lucide-react" ;
@@ -75,15 +74,14 @@ function EngineInfoSection(props: { team_slug: string; project_slug: string }) {
75
74
}
76
75
77
76
export function EngineFooterCard ( props : {
78
- teamPlan : Team [ "billingPlan" ] ;
79
- team_slug : string ;
80
- project_slug : string ;
77
+ teamSlug : string ;
78
+ projectSlug : string ;
81
79
} ) {
82
80
return (
83
81
< div className = "relative rounded-lg border p-6" >
84
82
< EngineInfoSection
85
- team_slug = { props . team_slug }
86
- project_slug = { props . project_slug }
83
+ team_slug = { props . teamSlug }
84
+ project_slug = { props . projectSlug }
87
85
/>
88
86
</ div >
89
87
) ;
Original file line number Diff line number Diff line change 1
1
import type { EngineInstance } from "@3rdweb-sdk/react/hooks/useEngine" ;
2
2
import type { Meta , StoryObj } from "@storybook/react" ;
3
+ import { teamStub } from "../../../../../../../../../../stories/stubs" ;
3
4
import { EngineInstancesTableUI } from "./engine-instances-table" ;
4
5
5
6
const meta : Meta < typeof Story > = {
@@ -109,15 +110,15 @@ export const NoInstancesProPlan: Story = {
109
110
args : {
110
111
instances : [ ] ,
111
112
engineLinkPrefix : "/team/test/engine" ,
112
- teamPlan : " pro",
113
+ team : teamStub ( "1" , " pro") ,
113
114
} ,
114
115
} ;
115
116
116
117
export const NoInstancesGrowthPlan : Story = {
117
118
args : {
118
119
instances : [ ] ,
119
120
engineLinkPrefix : "/team/test/engine" ,
120
- teamPlan : " growth",
121
+ team : teamStub ( "2" , " growth") ,
121
122
} ,
122
123
} ;
123
124
@@ -127,7 +128,7 @@ export const NoInstancesAcceleratePlan: Story = {
127
128
args : {
128
129
instances : [ ] ,
129
130
engineLinkPrefix : "/team/test/engine" ,
130
- teamPlan : " accelerate",
131
+ team : teamStub ( "3" , " accelerate") ,
131
132
} ,
132
133
} ;
133
134
You can’t perform that action at this time.
0 commit comments