fix: update carousel arrow icon
This commit is contained in:
parent
2f2285e943
commit
08e570a6c0
2 changed files with 11 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import { makeStyles } from '@material-ui/core/styles'
|
||||||
import React, { memo } from 'react'
|
import React, { memo } from 'react'
|
||||||
import ReactCarousel from 'react-material-ui-carousel'
|
import ReactCarousel from 'react-material-ui-carousel'
|
||||||
|
|
||||||
|
import { ReactComponent as Arrow } from 'src/styling/icons/arrow/carousel-arrow.svg'
|
||||||
import { URI } from 'src/utils/apollo'
|
import { URI } from 'src/utils/apollo'
|
||||||
|
|
||||||
const useStyles = makeStyles({
|
const useStyles = makeStyles({
|
||||||
|
|
@ -27,11 +28,13 @@ export const Carousel = memo(({ photosData, slidePhoto }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ReactCarousel
|
<ReactCarousel
|
||||||
|
PrevIcon={<Arrow />}
|
||||||
|
NextIcon={<Arrow />}
|
||||||
navButtonsProps={{
|
navButtonsProps={{
|
||||||
style: {
|
style: {
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
borderRadius: 0,
|
borderRadius: 0,
|
||||||
fontSize: 100
|
width: 50
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className={classes.slideButtons}
|
className={classes.slideButtons}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="13px" height="33px" viewBox="0 0 13 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<title>Simple Arrow White</title>
|
||||||
|
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||||
|
<polygon id="Simple-Arrow-White" fill="#FFFFFF" fill-rule="nonzero" points="12.1912718 1.56064837 10.8306233 0.395663059 0.196798664 16.2200463 10.8250965 32.3956631 12.1967987 31.2473125 2.33241023 16.233075"></polygon>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 550 B |
Loading…
Add table
Add a link
Reference in a new issue