diff options
| author | mehekj <mehek.jethani@gmail.com> | 2022-11-07 12:57:52 -0500 |
|---|---|---|
| committer | mehekj <mehek.jethani@gmail.com> | 2022-11-07 12:57:52 -0500 |
| commit | a73521cdbccf9bed1326d24522e133fad4a0de26 (patch) | |
| tree | e01371f6f845318831cf45f0dbc1d04d0d18f34c /src/client/views/DashboardView.tsx | |
| parent | 213a92ba3aa39d144754029fde32b9d69b0f51cf (diff) | |
| parent | 31a51e9dda07e48c88166bffbc8f1ad7166cd624 (diff) | |
Merge branch 'master' into schema-mehek
Diffstat (limited to 'src/client/views/DashboardView.tsx')
| -rw-r--r-- | src/client/views/DashboardView.tsx | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx index 192e55431..7ebe8d0e3 100644 --- a/src/client/views/DashboardView.tsx +++ b/src/client/views/DashboardView.tsx @@ -163,18 +163,7 @@ export class DashboardView extends React.Component { <div className="dashboard-view"> <div className="left-menu"> <div className="new-dashboard-button"> - <Button - icon={<FaPlus />} - hoverStyle="darken" - backgroundColor={Colors.LIGHT_BLUE} - size={Size.MEDIUM} - fontSize={FontSize.HEADER} - text="New" - onClick={() => { - this.setNewDashboardName(''); - }} - borderRadius={50} - /> + <Button icon={<FaPlus />} hoverStyle="darken" backgroundColor={Colors.LIGHT_BLUE} size={Size.MEDIUM} fontSize={FontSize.HEADER} text="New" onClick={() => this.setNewDashboardName('')} borderRadius={50} /> </div> <div className={`text-button ${this.selectedDashboardGroup === DashboardGroup.MyDashboards && 'selected'}`} onClick={() => this.selectDashboardGroup(DashboardGroup.MyDashboards)}> My Dashboards @@ -187,19 +176,14 @@ export class DashboardView extends React.Component { {this.getDashboards().map(dashboard => { const href = ImageCast(dashboard.thumb)?.url.href; return ( - <div - className="dashboard-container" - key={dashboard[Id]} - onContextMenu={e => { - this.onContextMenu(dashboard, e); - }} - onClick={e => this.clickDashboard(e, dashboard)}> + <div className="dashboard-container" key={dashboard[Id]} onContextMenu={e => this.onContextMenu(dashboard, e)} onClick={e => this.clickDashboard(e, dashboard)}> <img src={ href ?? 'https://media.istockphoto.com/photos/hot-air-balloons-flying-over-the-botan-canyon-in-turkey-picture-id1297349747?b=1&k=20&m=1297349747&s=170667a&w=0&h=oH31fJty_4xWl_JQ4OIQWZKP8C6ji9Mz7L4XmEnbqRU=' - }></img> + } + /> <div className="info"> - <div className="title"> {StrCast(dashboard.title)} </div> + <input style={{ border: 'unset' }} className="input" onClick={e => e.stopPropagation()} defaultValue={StrCast(dashboard.title)} onChange={e => (Doc.GetProto(dashboard).title = (e.target as any).value)} /> {this.selectedDashboardGroup === DashboardGroup.SharedDashboards && this.isUnviewedSharedDashboard(dashboard) ? <div>unviewed</div> : <div></div>} <div className="more" |
