Shun Miyazawa 4 years ago
parent
commit
4218779f62
1 changed files with 7 additions and 5 deletions
  1. 7 5
      packages/app/src/components/Admin/AuditLogManagement.tsx

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

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