diff options
| author | Stanley Yip <stanley_yip@brown.edu> | 2019-10-19 15:38:50 -0400 |
|---|---|---|
| committer | Stanley Yip <stanley_yip@brown.edu> | 2019-10-19 15:38:50 -0400 |
| commit | fe673d8cc7073b5bbe94efde6ef3346364ad1c58 (patch) | |
| tree | 463781adc044a651643b043f58dafe021b491b92 /src/client/views/nodes/FontIconBox.tsx | |
| parent | 462cd06a1bff6e510132a4434a72fd7b4245cfdf (diff) | |
staff view added
Diffstat (limited to 'src/client/views/nodes/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FontIconBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FontIconBox.tsx b/src/client/views/nodes/FontIconBox.tsx index efe47d8a8..ca0f7b0e5 100644 --- a/src/client/views/nodes/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox.tsx @@ -17,8 +17,8 @@ export class FontIconBox extends DocComponent<FieldViewProps, FontIconDocument>( public static LayoutString() { return FieldView.LayoutString(FontIconBox); } render() { - return <button className="fontIconBox-outerDiv" style={{ background: StrCast(this.props.Document.backgroundColor) }}> - <FontAwesomeIcon className="fontIconBox-icon" icon={this.Document.icon as any} size="sm" opacity={this.props.Document.unchecked ? "0.5" : "1"} /> + return <button className="fontIconBox-outerDiv" style={{ background: StrCast(this.props.Document.backgroundColor), opacity: this.props.Document.unchecked ? 0.5 : 1 }}> + <FontAwesomeIcon className="fontIconBox-icon" icon={this.Document.icon as any} size="sm" /> </button>; } }
\ No newline at end of file |
