Skip to content

Commit 5f11690

Browse files
committed
[TOOL-4277] Dashboard: Update gated features
tool-4277
1 parent d95b3d3 commit 5f11690

File tree

9 files changed

+268
-194
lines changed

9 files changed

+268
-194
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/account-abstraction/settings/page.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default async function Page(props: {
6060
trackingCategory="account-abstraction-project-settings"
6161
project={project}
6262
teamId={team.id}
63+
teamSlug={team.slug}
6364
validTeamPlan={getValidTeamPlan(team)}
6465
/>
6566
</ChakraProviderSetup>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/in-app-wallets/settings/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default async function Page(props: {
3030
teamId={team.id}
3131
trackingCategory="in-app-wallet-project-settings"
3232
teamSlug={team_slug}
33-
validTeamPlan={getValidTeamPlan(team)}
33+
teamPlan={getValidTeamPlan(team)}
3434
smsCountryTiers={smsCountryTiers}
3535
/>
3636
);

apps/dashboard/src/components/embedded-wallets/Configure/InAppWalletSettingsUI.stories.tsx

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { Team } from "@/api/team";
12
import type { Meta, StoryObj } from "@storybook/react";
23
import { projectStub } from "../../../stories/stubs";
3-
import { mobileViewport } from "../../../stories/utils";
44
import { InAppWalletSettingsUI } from "./index";
55

66
const meta = {
@@ -16,44 +16,44 @@ const meta = {
1616
export default meta;
1717
type Story = StoryObj<typeof meta>;
1818

19-
export const GrowthPlan: Story = {
19+
export const FreePlan: Story = {
2020
args: {
21-
canEditAdvancedFeatures: true,
21+
currentPlan: "free",
2222
},
2323
};
2424

25-
export const FreePlan: Story = {
25+
export const GrowthPlan: Story = {
2626
args: {
27-
canEditAdvancedFeatures: false,
27+
currentPlan: "growth",
2828
},
2929
};
3030

31-
export const GrowthPlanMobile: Story = {
31+
export const AcceleratePlan: Story = {
3232
args: {
33-
canEditAdvancedFeatures: true,
34-
},
35-
parameters: {
36-
viewport: mobileViewport("iphone14"),
33+
currentPlan: "accelerate",
3734
},
3835
};
3936

40-
export const FreePlanMobile: Story = {
37+
export const GrowthLegacyPlan: Story = {
4138
args: {
42-
canEditAdvancedFeatures: false,
39+
currentPlan: "growth_legacy",
4340
},
44-
parameters: {
45-
viewport: mobileViewport("iphone14"),
41+
};
42+
43+
export const ProPlan: Story = {
44+
args: {
45+
currentPlan: "pro",
4646
},
4747
};
4848

4949
function Variants(props: {
50-
canEditAdvancedFeatures: boolean;
50+
currentPlan: Team["billingPlan"];
5151
}) {
5252
return (
5353
<div className="mx-auto w-full max-w-[1140px] px-4 py-6">
5454
<div className="flex flex-col gap-10">
5555
<InAppWalletSettingsUI
56-
canEditAdvancedFeatures={props.canEditAdvancedFeatures}
56+
teamPlan={props.currentPlan}
5757
project={projectStub("foo", "bar")}
5858
teamId="bar"
5959
embeddedWalletService={{

0 commit comments

Comments
 (0)