Skip to content

Commit

Permalink
WIP #2: Added styling to arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
BaibhaVatsa committed Nov 28, 2019
1 parent 8d3f7c9 commit 5c214c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/ArrowComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ type ArrowProps = {
disabled: boolean;
}

const vanillaArrowStyle = {boxShadow: "none", background: "#f4f4f4"}

const ArrowComponent: React.FC<ArrowProps> = (props: ArrowProps) => {
const directionNumber = (props.direction === "right") ? 1 : -1;
return (
<div>
<Fab size='large' aria-label='add' variant='extended'
<Fab size='large' aria-label='change_date'
onClick={() => props.handleClick(directionNumber)}
disabled={props.disabled}>
disabled={props.disabled}
style={vanillaArrowStyle}>
{(directionNumber == 1) ? <ChevronRightIcon /> : <ChevronLeftIcon />}
</Fab>
</div>
Expand Down

0 comments on commit 5c214c3

Please sign in to comment.