diff options
author | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2023-07-10 16:15:57 -0400 |
---|---|---|
committer | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2023-07-10 16:15:57 -0400 |
commit | de75dacadc556c587bad0006638aab89a21ed7e0 (patch) | |
tree | cfa0cca320327293cfd110b07d1eea0f8207e2c2 /src | |
parent | 9a63f35496c82fd8be89e9490f65ac6354c7b752 (diff) |
updated to v54 of comp library
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 8 | ||||
-rw-r--r-- | src/client/views/topbar/TopBar.tsx | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index 8314f2d86..d181de8d0 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 { ColorPicker, Dropdown, DropdownType, IconButton, IListItemProps, OrientationType, Size, Toggle, ToggleType, Type } from 'browndash-components'; +import { ColorPicker, Dropdown, DropdownType, IconButton, IListItemProps, Size, Toggle, ToggleType, Type } from 'browndash-components'; import { action, computed, observable, runInAction } from 'mobx'; import { observer } from 'mobx-react'; import * as React from 'react'; @@ -337,7 +337,7 @@ export class FontIconBox extends DocComponent<ButtonProps>() { ); return ( - <Dropdown selected={{text: text}} color={Colors.WHITE} type={Type.PRIM} dropdownType={DropdownType.SELECT} items={list} location={OrientationType.LEFT}/> + <Dropdown selected={{text: text}} color={Colors.WHITE} type={Type.PRIM} dropdownType={DropdownType.SELECT} items={list}/> ) return ( @@ -419,6 +419,8 @@ export class FontIconBox extends DocComponent<ButtonProps>() { setTimeout(() => Doc.UnBrushAllDocs()); e.stopPropagation(); }} + color={color} + type={Type.PRIM} icon={this.Icon(color)!} tooltip={tooltip} /> @@ -562,7 +564,7 @@ export class FontIconBox extends DocComponent<ButtonProps>() { // shortcut: '#', } )); - button = <Dropdown selected={{text: text}} color={Colors.WHITE} type={Type.PRIM} dropdownType={DropdownType.SELECT} items={list} location={OrientationType.LEFT}/> + button = <Dropdown selected={{text: text}} color={Colors.WHITE} type={Type.PRIM} dropdownType={DropdownType.SELECT} items={list}/> break; case ButtonType.ColorButton: button = this.colorButton; break; case ButtonType.NumberDropdownButton: button = this.numberDropdownButton; break; diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx index 80294917f..b613a0e3e 100644 --- a/src/client/views/topbar/TopBar.tsx +++ b/src/client/views/topbar/TopBar.tsx @@ -95,7 +95,7 @@ export class TopBar extends React.Component { <div className="topbar-center"> <Button text={StrCast(Doc.ActiveDashboard.title)} - tooltip="Browsing mode for directly navigating to documents" + tooltip="Open Dashboards" size={Size.SMALL} color={'white'} style={{fontWeight: 700, fontSize: '1rem'}} |