Skip to content

Commit

Permalink
Merge pull request #2946 from developerium/patch-1
Browse files Browse the repository at this point in the history
Fix button usage to show primary color
  • Loading branch information
Gildas Garcia authored Mar 2, 2019
2 parents dc3935e + 77c29ac commit 4227b08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/List.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const PostActions = ({
/>
<RefreshButton />
{/* Add your custom actions */}
<Button primary onClick={customAction}>Custom Action</Button>
<Button color="primary" onClick={customAction}>Custom Action</Button>
</CardActions>
);

Expand Down Expand Up @@ -572,12 +572,12 @@ const PostPagination = ({ page, perPage, total, setPage }) => {
nbPages > 1 &&
<Toolbar>
{page > 1 &&
<Button primary key="prev" icon={<ChevronLeft />} onClick={() => setPage(page - 1)}>
<Button color="primary" key="prev" icon={<ChevronLeft />} onClick={() => setPage(page - 1)}>
Prev
</Button>
}
{page !== nbPages &&
<Button primary key="next" icon={<ChevronRight />} onClick={() => setPage(page + 1)} labelPosition="before">
<Button color="primary" key="next" icon={<ChevronRight />} onClick={() => setPage(page + 1)} labelPosition="before">
Next
</Button>
}
Expand Down

0 comments on commit 4227b08

Please sign in to comment.