Skip to content

Commit

Permalink
feat(NoDatasetSelected): simple page for when no dataset is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Sep 11, 2019
1 parent 1baf153 commit a878e54
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/components/NoDatasetSelected.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import * as React from 'react'

interface NoDatasetSelectedProps {
toggleDatasetList: () => void
}

const NoDatasetSelected: React.FunctionComponent<NoDatasetSelectedProps> = ({ toggleDatasetList }) => (
<div className={'unlinked-dataset'}>
<div className={'message-container'}>
<div>
<h4>Choose a dataset to explore</h4>
<p>Use {process.platform === 'darwin' ? 'Command + T' : 'Ctrl + T'} to toggle the dataset list open and closed</p>
<a href='#' onClick={(e) => {
e.preventDefault()
toggleDatasetList()
}}>Or click here to open the dataset list</a>
</div>
</div>
</div>
)

export default NoDatasetSelected

0 comments on commit a878e54

Please sign in to comment.