-
Notifications
You must be signed in to change notification settings - Fork 0
Enhancement ItemTable Visual Improvements #155
Merged
+177
−55
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
140c71e
Removed Paper render to remove extraneous shadows
3a95107
Changed the table render to the small variant in order to reduce unee…
561d435
Styling fixes for sort by buttons to add visual weight and make them …
566efca
Add spacing for table
campb303 56d6f28
Remove unused classes
campb303 3effeb7
Refactored sorting to its own component
wrigh393 6019e2b
Fixed merge conflict
wrigh393 9aa5321
Fixed column border gap
wrigh393 3edc67a
Minor formatting
campb303 2595643
Refactored code to reduce number of props for ItemTableSortButtons co…
wrigh393 10de4bd
Fixed merge conflicts
wrigh393 0799a8f
Updated ItemTableSortButtons docs with examples of usage
wrigh393 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
31 changes: 31 additions & 0 deletions
31
src/components/ItemTableSortButtons.js/ItemTableSortButtons.js
This file contains hidden or 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,31 @@ | ||
| import React from 'react'; | ||
| import PropTypes from "prop-types"; | ||
| import { ButtonGroup, IconButton } from "@material-ui/core"; | ||
| import { ArrowDownward, ArrowUpward } from "@material-ui/icons"; | ||
|
|
||
| export default function ItemTableSortButtons({ onClickAsc, onClickDesc, colorAsc, colorDesc, columnSortAscProps, columnSortDescProps }) { | ||
| return ( | ||
| <ButtonGroup orientation="vertical" size="small"> | ||
| <IconButton | ||
| edge="start" | ||
| onClick={onClickAsc} | ||
| > | ||
| <ArrowUpward {...columnSortAscProps} | ||
| fontSize="inherit" | ||
| color={colorAsc} | ||
| /> | ||
| </IconButton> | ||
| <IconButton | ||
| edge="start" | ||
| onClick={onClickDesc} | ||
| > | ||
| <ArrowDownward {...columnSortDescProps} | ||
| fontSize="inherit" | ||
| color={colorDesc} | ||
| /> | ||
| </IconButton> | ||
| </ButtonGroup> | ||
| ) | ||
| } | ||
|
|
||
|
|
||
campb303 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Empty file.
This file contains hidden or 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,3 @@ | ||
| import ItemtTableSortButtons from './ItemTableSortButtons' | ||
|
|
||
| export default ItemtTableSortButtons; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.