aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DashboardView.tsx
diff options
context:
space:
mode:
authoreperelm2 <emily_perelman@brown.edu>2023-08-24 20:54:45 +0200
committereperelm2 <emily_perelman@brown.edu>2023-08-24 20:54:45 +0200
commitf189b4f65163a7bc231b5aa57f01d915f953931d (patch)
treeb8bd6fba593a29319972a40a07f572063b300b25 /src/client/views/DashboardView.tsx
parent2fcad5e8bd1412487b4fcacefdc12a2df5707638 (diff)
parent372face940712d239d48f9884ded34d82d170a94 (diff)
filter - made small finishing changes
Diffstat (limited to 'src/client/views/DashboardView.tsx')
-rw-r--r--src/client/views/DashboardView.tsx10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx
index d6c7b43d5..acf5b654d 100644
--- a/src/client/views/DashboardView.tsx
+++ b/src/client/views/DashboardView.tsx
@@ -108,15 +108,7 @@ export class DashboardView extends React.Component {
}}>
<div className="header">Create New Dashboard</div>
<EditableText formLabel="Title" placeholder={placeholder} type={Type.SEC} color={StrCast(Doc.UserDoc().userColor)} setVal={val => this.setNewDashboardName(val as string)} fillWidth />
- <ColorPicker
- formLabel="Background"
- colorPickerType="github"
- type={Type.TERT}
- selectedColor={this.newDashboardColor}
- setSelectedColor={color => {
- this.setNewDashboardColor(color);
- }}
- />
+ <ColorPicker formLabel="Background" colorPickerType="github" type={Type.TERT} selectedColor={this.newDashboardColor} setSelectedColor={this.setNewDashboardColor} />
<div className="button-bar">
<Button text="Cancel" color={StrCast(Doc.UserDoc().userColor)} onClick={this.abortCreateNewDashboard} />
<Button type={Type.TERT} text="Create" color={StrCast(Doc.UserDoc().userVariantColor)} onClick={() => this.createNewDashboard(this.newDashboardName!, this.newDashboardColor)} />