forked from aragon/aragon-apps
-
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.
Finance filters refresh (aragon#767)
Improve the filters layout: - Move TransfersFilters to its own component. - Make the layout work at all sizes. - Update the download button so it looks like the other icon buttons. - Update some labels: - “Date range” => “Period” - “Transfer type” => “Type” (since it is already below the “Transfers” title). - Select the last 90 days (rolling) by default.
- Loading branch information
Showing
5 changed files
with
313 additions
and
316 deletions.
There are no files selected for viewing
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,21 @@ | ||
import React from 'react' | ||
import { ButtonIcon } from '@aragon/ui' | ||
import IconDownload from './IconDownload' | ||
|
||
const Download = ({ url, filename, ...props }) => ( | ||
<ButtonIcon | ||
href={url} | ||
download={filename} | ||
rel="noopener noreferrer" | ||
label="Download" | ||
css={` | ||
height: 40px; | ||
padding-top: 4px; | ||
`} | ||
{...props} | ||
> | ||
<IconDownload /> | ||
</ButtonIcon> | ||
) | ||
|
||
export default Download |
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.