diff options
author | geireann <geireann.lindfield@gmail.com> | 2023-06-07 13:37:58 -0400 |
---|---|---|
committer | geireann <geireann.lindfield@gmail.com> | 2023-06-07 13:37:58 -0400 |
commit | f17d79886f153cdc675c0a3c56f988c871571f39 (patch) | |
tree | 31a61a9562101fbc30015746eacfba8718761de5 /src | |
parent | abd79b36f15466db05a2c1f379260b85e4ae838b (diff) |
updated to use toggle
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index b2223519e..1c085f617 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -1,7 +1,7 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Tooltip } from '@material-ui/core'; -import { Button, ColorPicker, Dropdown, DropdownType, IconButton, IListItemProps, OrientationType, Size, Type } from 'browndash-components'; +import { Button, ColorPicker, Dropdown, DropdownType, IconButton, IListItemProps, OrientationType, Size, Toggle, ToggleType, Type } from 'browndash-components'; import { action, computed, observable, runInAction } from 'mobx'; import { observer } from 'mobx-react'; import * as React from 'react'; @@ -472,9 +472,9 @@ export class FontIconBox extends DocComponent<ButtonProps>() { {this.label} </div> ); - + console.log("switchToggle", switchToggle, this.rootDoc.title) return ( - <IconButton text={buttonText} icon={this.Icon(color)!} label={this.label}/> + <Toggle toggleType={ToggleType.BUTTON} type={Type.PRIM} toggleStatus={switchToggle} text={buttonText} color={color} icon={this.Icon(color)!} label={this.label}/> ) if (switchToggle) { |