-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: launch form fixes Signed-off-by: Carina Ursu <carina@union.ai> * chore: collection of collections Signed-off-by: Carina Ursu <carina@union.ai> * chore: struct fix Signed-off-by: Carina Ursu <carina@union.ai> * chore: blobs Signed-off-by: Carina Ursu <carina@union.ai> * chore: collection fixes Signed-off-by: Carina Ursu <carina@union.ai> * chore: theme pollution Signed-off-by: Carina Ursu <carina@union.ai> * chore: errors should bubble Signed-off-by: Carina Ursu <carina@union.ai> * chore: fix collection Signed-off-by: Carina Ursu <carina@union.ai> * chore: progress Signed-off-by: Carina Ursu <carina@union.ai> * chore: progress Signed-off-by: Carina Ursu <carina@union.ai> * chore: fixes Signed-off-by: Carina Ursu <carina@union.ai> * chore: launch form inputs tests Signed-off-by: Carina Ursu <carina@union.ai> * chore: fix inputHelpers.test.ts Signed-off-by: Carina Ursu <carina@union.ai> * chore: launchworkflowform tests Signed-off-by: Carina Ursu <carina@union.ai> * chore: launch task form Signed-off-by: Carina Ursu <carina@union.ai> * chore: fix taskexecutiondetails.test Signed-off-by: Carina Ursu <carina@union.ai> * chore: fill blob format Signed-off-by: Carina Ursu <carina@union.ai> * chore: default blob format Signed-off-by: Carina Ursu <carina@union.ai> --------- Signed-off-by: Carina Ursu <carina@union.ai>
- Loading branch information
1 parent
f6d5fb9
commit 1da4d7a
Showing
60 changed files
with
1,651 additions
and
1,014 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 0 additions & 57 deletions
57
packages/console/src/components/Launch/LaunchForm/CollectionInput.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/console/src/components/Launch/LaunchForm/LaunchFormComponents/BooleanInput.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, { FC } from 'react'; | ||
import { | ||
FormControl, | ||
FormControlLabel, | ||
FormHelperText, | ||
Switch, | ||
} from '@material-ui/core'; | ||
import { InputProps } from '../types'; | ||
import { getLaunchInputId } from '../utils'; | ||
import { makeSwitchChangeHandler } from '../handlers'; | ||
|
||
/** A micro form for entering the values related to a Blob Literal */ | ||
export const BooleanInput: FC<InputProps> = props => { | ||
const { name, value, onChange, label, error, required } = props; | ||
|
||
return ( | ||
<FormControl> | ||
<FormControlLabel | ||
control={ | ||
<Switch | ||
id={getLaunchInputId(name)} | ||
checked={!!value} | ||
onChange={makeSwitchChangeHandler(onChange)} | ||
value={name} | ||
required={required} | ||
/> | ||
} | ||
label={label} | ||
/> | ||
<FormHelperText error={!!error}>{error}</FormHelperText> | ||
</FormControl> | ||
); | ||
}; |
Oops, something went wrong.