18559: Add basic field validation for profile email
[arvados-workbench2.git] / src / views / process-log-panel / process-log-form.tsx
index dfac832f80e99e99cb1ded6cc6044f1bc7da15b2..946e575e3108537336b44809023cb259c99e14d9 100644 (file)
@@ -2,9 +2,9 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
+import React from 'react';
 import { withStyles, WithStyles, StyleRulesCallback, FormControl, InputLabel, Select, MenuItem, Input } from '@material-ui/core';
-import { ArvadosTheme } from '~/common/custom-theme';
+import { ArvadosTheme } from 'common/custom-theme';
 import { FilterOption } from './process-log-panel';
 
 type CssRules = 'formControl';
@@ -31,11 +31,11 @@ export const ProcessLogForm = withStyles(styles)(
         <form autoComplete="off">
             <FormControl className={classes.formControl}>
                 <InputLabel shrink htmlFor="log-label-placeholder">
-                    Log
+                    Event Type
                 </InputLabel>
                 <Select
                     value={selectedFilter.value}
-                    onChange={event => onChange}
+                    onChange={({ target }) => onChange({ label: target.innerText, value: target.value })}
                     input={<Input name="eventType" id="log-label-placeholder" />}
                     name="eventType">
                     {