Skip to content

Commit

Permalink
Revert "fix: files tab button fix"
Browse files Browse the repository at this point in the history
This reverts commit d101be3.
  • Loading branch information
rafaelramalho19 committed Jun 3, 2020
1 parent d101be3 commit f51dbb2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/files/header/Header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import classNames from 'classnames'
import filesize from 'filesize'
import SimplifyNumber from 'simplify-number'
import { connect } from 'redux-bundler-react'
Expand All @@ -11,13 +10,16 @@ import Button from '../../components/button/Button'
// Icons
import GlyphDots from '../../icons/GlyphDots'

function BarOption ({ children, title, isLink = false, className = '', onClick, ...etc }) {
const BarOptionsWrapper = onClick ? 'button' : 'div'
function BarOption ({ children, title, isLink = false, className = '', ...etc }) {
className += ' tc pa3'

if (etc.onClick) className += ' pointer'

return (
<BarOptionsWrapper className={classNames(className, 'tc pa3')} onClick={onClick} {...etc}>
<div className={className} {...etc}>
<span className='nowrap db f4 navy'>{children}</span>
<span className={`db ttl ${isLink ? 'navy underline' : 'gray'}`}>{title}</span>
</BarOptionsWrapper>
</div>
)
}

Expand Down

0 comments on commit f51dbb2

Please sign in to comment.