Quellcode durchsuchen

add RoleValueEnum

visuddhinanda vor 3 Jahren
Ursprung
Commit
8338b3a057
1 geänderte Dateien mit 31 neuen und 0 gelöschten Zeilen
  1. 31 0
      dashboard/src/components/studio/table.ts

+ 31 - 0
dashboard/src/components/studio/table.ts

@@ -41,3 +41,34 @@ export const PublicityValueEnum = () => {
 		},
 		},
 	};
 	};
 };
 };
+
+export const RoleValueEnum = () => {
+	const intl = useIntl();
+	return {
+		all: {
+			text: intl.formatMessage({
+				id: "tables.role.all",
+			}),
+		},
+		owner: {
+			text: intl.formatMessage({
+				id: "tables.role.owner",
+			}),
+		},
+		manager: {
+			text: intl.formatMessage({
+				id: "tables.role.manager",
+			}),
+		},
+		editor: {
+			text: intl.formatMessage({
+				id: "tables.role.editor",
+			}),
+		},
+		member: {
+			text: intl.formatMessage({
+				id: "tables.role.member",
+			}),
+		},
+	};
+};