-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcd9f1f
commit 9f8a7d8
Showing
12 changed files
with
247 additions
and
51 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import React from 'react'; | ||
import { VIEW_OPTIONS } from './hooks'; | ||
|
||
import './index.scss'; | ||
import EnabledCondenseIcon from '../../assets/icons/condense-enabled.svg'; | ||
import DisabledCondenseIcon from '../../assets/icons/condense-disabled.svg'; | ||
import EnabledExpandIcon from '../../assets/icons/expand-enabled.svg'; | ||
import DisabledExpandIcon from '../../assets/icons/expand-disabled.svg'; | ||
|
||
const ViewBar = ({ | ||
viewOption, | ||
setViewOption, | ||
}) => { | ||
|
||
return ( | ||
<div className='option-row'> | ||
<div className='horizontal-bar' /> | ||
<button | ||
className='option' | ||
onClick={() => setViewOption(VIEW_OPTIONS.condensed)} | ||
> | ||
<img src={viewOption === VIEW_OPTIONS.condensed ? DisabledCondenseIcon : EnabledCondenseIcon} /> | ||
</button> | ||
<button | ||
className='option' | ||
onClick={() => setViewOption(VIEW_OPTIONS.expanded)} | ||
> | ||
<img src={viewOption === VIEW_OPTIONS.expanded ? DisabledExpandIcon : EnabledExpandIcon} /> | ||
</button> | ||
{/* <div className='selections'> | ||
<button | ||
className={`option ${sortOption === SORT_OPTIONS.abc ? 'selected' : null}`} | ||
onClick={() => setSortOption(SORT_OPTIONS.abc)} | ||
> | ||
<span>ABC</span> | ||
</button> | ||
<button | ||
className={`option ${sortOption === SORT_OPTIONS.zxy ? 'selected' : null}`} | ||
onClick={() => setSortOption(SORT_OPTIONS.zxy)} | ||
> | ||
<span>ZXY</span> | ||
</button> | ||
<button | ||
className={`option ${sortOption === SORT_OPTIONS.newest ? 'selected' : null}`} | ||
onClick={() => setSortOption(SORT_OPTIONS.newest)} | ||
> | ||
<span>Newest</span> | ||
</button> | ||
<button | ||
className={`option ${sortOption === SORT_OPTIONS.oldest ? 'selected' : null}`} | ||
onClick={() => setSortOption(SORT_OPTIONS.oldest)} | ||
> | ||
<span>Oldest</span> | ||
</button> | ||
</div> */} | ||
</div> | ||
); | ||
}; | ||
|
||
export default ViewBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.