aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/button/textButton/TextButton.tsx
diff options
context:
space:
mode:
authorGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2022-07-06 16:02:25 -0700
committerGitHub <noreply@github.com>2022-07-06 16:02:25 -0700
commita9f704fbd5676bb9a8adf4c4f7ea61bf9b3f7603 (patch)
treedbfeadbc48f25964fab8581e7c862bf0e734bcf0 /src/client/views/nodes/button/textButton/TextButton.tsx
parent85e290ee7a666412570f2bae43a9b62d35b425f2 (diff)
parent023b00927522279dfb87adbaeac6f312f3c6162a (diff)
Merge pull request #95 from brown-dash/geireann-eslint-prettier
integrating eslint prettier
Diffstat (limited to 'src/client/views/nodes/button/textButton/TextButton.tsx')
-rw-r--r--src/client/views/nodes/button/textButton/TextButton.tsx23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/client/views/nodes/button/textButton/TextButton.tsx b/src/client/views/nodes/button/textButton/TextButton.tsx
index e18590a95..5d7d55863 100644
--- a/src/client/views/nodes/button/textButton/TextButton.tsx
+++ b/src/client/views/nodes/button/textButton/TextButton.tsx
@@ -9,9 +9,22 @@ export class TextButton extends Component<IButtonProps> {
// Determine the type of toggle button
const buttonText: boolean = BoolCast(this.props.rootDoc.switchToggle);
- return (<div className={`menuButton ${this.props.type}`} style={{ opacity: 1, backgroundColor: this.props.backgroundColor, color: this.props.color }}>
- <FontAwesomeIcon className={`fontIconBox-icon-${this.props.type}`} icon={this.props.icon} color={this.props.color} />
- {this.props.label}
- </div>);
+ return (
+ <div
+ className={`menuButton ${this.props.type}`}
+ style={{
+ opacity: 1,
+ backgroundColor: this.props.backgroundColor,
+ color: this.props.color,
+ }}
+ >
+ <FontAwesomeIcon
+ className={`fontIconBox-icon-${this.props.type}`}
+ icon={this.props.icon}
+ color={this.props.color}
+ />
+ {this.props.label}
+ </div>
+ );
}
-} \ No newline at end of file
+}