Skip to content

Commit d0545ec

Browse files
authored
Merge pull request #2085 from bluewave-labs/revert-2050-as-sep-3-stripe-fe
Revert "Feat: Stripe FE"
2 parents b7aa754 + f7e8a07 commit d0545ec

File tree

17 files changed

+74
-744
lines changed

17 files changed

+74
-744
lines changed

Clients/src/application/hooks/useSubscriptionData.tsx

Lines changed: 0 additions & 125 deletions
This file was deleted.

Clients/src/application/hooks/useSubscriptionManagement.tsx

Lines changed: 0 additions & 96 deletions
This file was deleted.

Clients/src/application/repository/subscription.repository.ts

Lines changed: 0 additions & 122 deletions
This file was deleted.
Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
import { apiServices } from "../../infrastructure/api/networkServices";
22
import { getAuthToken } from "../redux/auth/getAuthToken";
3-
import { Tier } from "../../domain/types/Tiers";
4-
5-
interface TierResponse {
6-
id: number;
7-
name: string;
8-
price: number;
9-
features: Tier;
10-
}
113

124
/**
135
* Retrieves features for a specific tier.
@@ -37,18 +29,3 @@ export async function getTierFeatures({
3729
});
3830
return response.data;
3931
}
40-
41-
export async function getAllTiers({
42-
signal,
43-
authToken = getAuthToken(),
44-
}: {
45-
signal?: AbortSignal;
46-
authToken?: string;
47-
} = {}): Promise<TierResponse[]> {
48-
const response = await apiServices.get("/tiers", {
49-
headers: { Authorization: `Bearer ${authToken}` },
50-
signal,
51-
});
52-
53-
return response.data.data ?? [];
54-
}

0 commit comments

Comments
 (0)