Skip to content

Commit f4181ba

Browse files
chore: enum optimization
1 parent c524528 commit f4181ba

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

constants/auth.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ export enum Provider {
88
GITHUB = 'github',
99
}
1010

11-
export enum AuthStatus {
12-
AUTHENTICATED = 'authenticated',
13-
LOADING = 'loading',
14-
UNAUTHENTICATED = 'unauthenticated',
15-
}
16-
1711
export enum UserRole {
1812
ADMIN = 'admin',
1913
STUDENT = 'student',
2014
TEACHER = 'teacher',
2115
}
2216

17+
export const enum AuthStatus {
18+
AUTHENTICATED = 'authenticated',
19+
LOADING = 'loading',
20+
UNAUTHENTICATED = 'unauthenticated',
21+
}
22+
2323
export const OAUTH_LABELS = {
2424
[Provider.GITHUB]: 'GitHub',
2525
[Provider.LINKEDIN]: 'LinkedIn',

constants/courses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export enum FilterStatus {
1+
export const enum FilterStatus {
22
COMPLETED = 'completed',
33
PROGRESS = 'progress',
44
}

constants/fees.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
export enum CalculationMethod {
1+
export const enum CalculationMethod {
22
FIXED = 'fixed',
33
PERCENTAGE = 'percentage',
44
}
55

6-
export enum FeeType {
6+
export const enum FeeType {
77
SERVICE = 'service',
88
STRIPE = 'stripe',
99
}

constants/payments.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
export enum PayoutRequestStatus {
1+
export const enum PayoutRequestStatus {
22
AVAILABLE = 'available',
33
DECLINED = 'declined',
44
PAID = 'paid',
55
PENDING = 'pending',
66
}
77

8-
export enum PromoStatus {
8+
export const enum PromoStatus {
99
DECLINED = 'declined',
1010
NEW = 'new',
1111
}
1212

13-
export enum Report {
13+
export const enum Report {
1414
CONNECT = 'connect',
1515
OWNER = 'owner',
1616
}

0 commit comments

Comments
 (0)