Skip to content

Commit

Permalink
refactor: add buttons icons to the nav (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonfray committed May 18, 2023
1 parent 0c3688e commit 73d3086
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/options/navigation/NavigationHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ import PropTypes from 'prop-types'

import ConfigurationUpload from '../../shared/ConfigurationUpload'
import { Button } from '@mui/material'
import {
AddRounded,
ArticleRounded,
BackupRounded,
QuestionMarkRounded,
SettingsRounded
} from '@mui/icons-material'

class NavigationHeader extends React.Component {
static propTypes = {
Expand All @@ -37,6 +44,7 @@ class NavigationHeader extends React.Component {
style={{ textTransform: 'none', fontSize: '12px', lineHeight: '14px' }}
href="#logs"
onClick={(event) => this.handleClick(event, 'logs')}
startIcon={<ArticleRounded />}
>
Logs
</Button>
Expand All @@ -53,6 +61,7 @@ class NavigationHeader extends React.Component {
style={{ textTransform: 'none', fontSize: '12px', lineHeight: '14px' }}
href="#help"
onClick={(event) => this.handleClick(event, 'help')}
startIcon={<QuestionMarkRounded />}
>
Help
</Button>
Expand All @@ -62,6 +71,7 @@ class NavigationHeader extends React.Component {
style={{ textTransform: 'none', fontSize: '12px', lineHeight: '14px' }}
href={'#' + 'configuration/new'}
onClick={(event) => this.handleClick(event, 'configuration/new')}
startIcon={<AddRounded />}
>
Create
</Button>
Expand All @@ -74,6 +84,7 @@ class NavigationHeader extends React.Component {
style={{ textTransform: 'none', fontSize: '12px', lineHeight: '14px' }}
href="#settings"
onClick={(event) => this.handleClick(event, 'settings')}
startIcon={<SettingsRounded />}
>
Settings
</Button>
Expand All @@ -83,6 +94,7 @@ class NavigationHeader extends React.Component {
style={{ textTransform: 'none', fontSize: '12px', lineHeight: '14px' }}
href="#backup"
onClick={this.props.onDownloadAll}
startIcon={<BackupRounded />}
>
Backup
</Button>
Expand Down
2 changes: 2 additions & 0 deletions src/components/shared/ConfigurationUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
DialogTitle,
TextField
} from '@mui/material'
import { FileUploadRounded } from '@mui/icons-material'

class ConfigurationUpload extends React.Component {
static propTypes = {
Expand Down Expand Up @@ -142,6 +143,7 @@ class ConfigurationUpload extends React.Component {
style={{ textTransform: 'none', fontSize: '12px', lineHeight: '14px' }}
href={'#configuration/upload'}
onClick={(event) => this.showUploadDialog(event)}
startIcon={<FileUploadRounded />}
>
Upload
</Button>
Expand Down

0 comments on commit 73d3086

Please sign in to comment.