Shun Miyazawa před 4 roky
rodič
revize
4218779f62

+ 7 - 5
packages/app/src/components/Admin/AuditLogManagement.tsx

@@ -10,8 +10,14 @@ import PaginationWrapper from '../PaginationWrapper';
 import { ActivityTable } from './AuditLog/ActivityTable';
 import { ActivityTable } from './AuditLog/ActivityTable';
 
 
 
 
+const SelectQueryDropdownLabel = {
+  SELECT_ACTION: 'select_action',
+} as const;
+
+const allSelectQueryDropdownLabel = Object.values(SelectQueryDropdownLabel);
+
 type SelectQueryDropdownProps = {
 type SelectQueryDropdownProps = {
-  dropdownLabel: string
+  dropdownLabel: typeof allSelectQueryDropdownLabel[keyof typeof allSelectQueryDropdownLabel];
   dropdownItemList: string[]
   dropdownItemList: string[]
 }
 }
 
 
@@ -40,10 +46,6 @@ const SelectQueryDropdown: FC<SelectQueryDropdownProps> = (props: SelectQueryDro
   );
   );
 };
 };
 
 
-const SelectQueryDropdownLabel = {
-  SELECT_ACTION: 'select_action',
-} as const;
-
 const PAGING_LIMIT = 10;
 const PAGING_LIMIT = 10;
 
 
 export const AuditLogManagement: FC = () => {
 export const AuditLogManagement: FC = () => {