Add a progress bar
This commit is contained in:
parent
2701eb9076
commit
334cf002fa
4 changed files with 51 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ import { renderIcon } from "utils/parseIconName";
|
|||
import Slider from "material-ui-old/Slider";
|
||||
import MuiThemeProvider from "material-ui-old/styles/MuiThemeProvider";
|
||||
|
||||
import { Toggle, DropDown, Link, Section, Text } from "./UiItem";
|
||||
import { Toggle, DropDown, Link, Section, Text, Progress } from "./UiItem";
|
||||
|
||||
export type UiItemListProps = {
|
||||
controls: Array<ControlUI>,
|
||||
|
|
@ -76,6 +76,11 @@ export default class UiItemList extends React.Component<UiItemListProps> {
|
|||
state={this.props.state}
|
||||
onChangeState={this.props.onChangeState} />;
|
||||
}
|
||||
case "progress": {
|
||||
return <Progress item={control}
|
||||
state={this.props.state}
|
||||
onChangeState={this.props.onChangeState} />;
|
||||
}
|
||||
default: {
|
||||
throw new Error(
|
||||
`Unknown UI type "${control.type}" for "${control.text}" component`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue