Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finance filters refresh #767

Merged
merged 9 commits into from
Apr 17, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ const StyledDatePickersContainer = styled.div`
display: flex;
flex-direction: row;
align-items: baseline;
left: -250px;
`
)}
`
Expand Down
20 changes: 20 additions & 0 deletions apps/finance/app/src/components/DownloadButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import { ButtonIcon } from '@aragon/ui'
import IconDownload from './IconDownload'

const Download = ({ url, filename }) => (
<ButtonIcon
href={url}
download={filename}
rel="noopener noreferrer"
label="Download"
css={`
height: 40px;
padding-top: 4px;
`}
>
<IconDownload />
</ButtonIcon>
)

export default Download
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
import React from 'react'
import { ButtonIcon } from '@aragon/ui'

const Download = props => (
<ButtonIcon
{...props}
css={`
width: auto;
height: 100%;
padding: 0 8px;
margin: 0 8px;
`}
label="Download"
>
<IconDownload />
</ButtonIcon>
)

const IconDownload = props => (
<svg
Expand All @@ -35,4 +19,4 @@ const IconDownload = props => (
</svg>
)

export default Download
export default IconDownload
Loading