Skip to content

Commit

Permalink
fix: files tab button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelramalho19 committed Jun 3, 2020
1 parent 71763a2 commit d101be3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/files/header/Header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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 @@ -10,16 +11,13 @@ import Button from '../../components/button/Button'
// Icons
import GlyphDots from '../../icons/GlyphDots'

function BarOption ({ children, title, isLink = false, className = '', ...etc }) {
className += ' tc pa3'

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

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

Expand Down

0 comments on commit d101be3

Please sign in to comment.