TagSpaces is an offline, open source, document manager with tagging support
add react-slick (#2067)
Stanimircdda5cd61461
diff --git a/package-lock.json b/package-lock.jsonindex 6f98b415a..f48d7bf1a 100644--- a/package-lock.json+++ b/package-lock.json@@ -72,13 +72,14 @@"react-leaflet": "^4.2.1","react-qrcode-logo": "^2.8.0","react-redux": "^8.0.2",+ "react-slick": "^0.30.2","react-virtuoso": "^4.1.0","redux": "^4.2.0","redux-persist": "^5.10.0","redux-thunk": "^2.4.1","semver": "^7.3.5",+ "slick-carousel": "^1.8.1","source-map-support": "^0.5.21",- "swiper": "^10.2.0","tga-js": "1.1.1","ts-react-splitter": "^3.0.0","use-state-with-callback": "^2.0.3",@@ -20620,6 +20621,11 @@"node": ">=10.13.0"}},+ "node_modules/enquire.js": {+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/enquire.js/-/enquire.js-2.1.6.tgz",+ "integrity": "sha512-/KujNpO+PT63F7Hlpu4h3pE3TokKRHN26JYmQpPyjkRD/N57R7bPDNojMXdi7uveAKjYB7yQnartCxZnFWr0Xw=="+ },"node_modules/enquirer": {"version": "2.4.1","resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz",@@ -27419,6 +27425,12 @@"@sideway/pinpoint": "^2.0.0"}},+ "node_modules/jquery": {+ "version": "3.7.1",+ "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",+ "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==",+ "peer": true+ },"node_modules/js-cookie": {"version": "2.2.1","resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz",@@ -27630,6 +27642,14 @@"integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==","dev": true},+ "node_modules/json2mq": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz",+ "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==",+ "dependencies": {+ "string-convert": "^0.2.0"+ }+ },"node_modules/json5": {"version": "2.2.3","resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",@@ -38036,6 +38056,22 @@"react": "^16.0.0 || ^17.0.0 || ^18.0.0"}},+ "node_modules/react-slick": {+ "version": "0.30.2",+ "resolved": "https://registry.npmjs.org/react-slick/-/react-slick-0.30.2.tgz",+ "integrity": "sha512-XvQJi7mRHuiU3b9irsqS9SGIgftIfdV5/tNcURTb5LdIokRA5kIIx3l4rlq2XYHfxcSntXapoRg/GxaVOM1yfg==",+ "dependencies": {+ "classnames": "^2.2.5",+ "enquire.js": "^2.1.6",+ "json2mq": "^0.2.0",+ "lodash.debounce": "^4.0.8",+ "resize-observer-polyfill": "^1.5.0"+ },+ "peerDependencies": {+ "react": "^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0",+ "react-dom": "^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0"+ }+ },"node_modules/react-test-renderer": {"version": "18.2.0","resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-18.2.0.tgz",@@ -39903,6 +39939,14 @@"node": ">=8"}},+ "node_modules/slick-carousel": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/slick-carousel/-/slick-carousel-1.8.1.tgz",+ "integrity": "sha512-XB9Ftrf2EEKfzoQXt3Nitrt/IPbT+f1fgqBdoxO3W/+JYvtEOW6EgxnWfr9GH6nmULv7Y2tPmEX3koxThVmebA==",+ "peerDependencies": {+ "jquery": ">=1.8.0"+ }+ },"node_modules/slide": {"version": "1.1.6","resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz",@@ -40510,6 +40554,11 @@"node": ">=0.6.19"}},+ "node_modules/string-convert": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz",+ "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A=="+ },"node_modules/string-length": {"version": "4.0.2","resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz",@@ -41089,24 +41138,6 @@"url": "https://github.com/fb55/domutils?sponsor=1"}},- "node_modules/swiper": {- "version": "10.3.1",- "resolved": "https://registry.npmjs.org/swiper/-/swiper-10.3.1.tgz",- "integrity": "sha512-24Wk3YUdZHxjc9faID97GTu6xnLNia+adMt6qMTZG/HgdSUt4fS0REsGUXJOgpTED0Amh/j+gRGQxsLayJUlBQ==",- "funding": [- {- "type": "patreon",- "url": "https://www.patreon.com/swiperjs"- },- {- "type": "open_collective",- "url": "http://opencollective.com/swiper"- }- ],- "engines": {- "node": ">= 4.7.0"- }- },"node_modules/symbol-observable": {"version": "1.2.0","resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz",@@ -60195,6 +60226,11 @@"tapable": "^2.2.0"}},+ "enquire.js": {+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/enquire.js/-/enquire.js-2.1.6.tgz",+ "integrity": "sha512-/KujNpO+PT63F7Hlpu4h3pE3TokKRHN26JYmQpPyjkRD/N57R7bPDNojMXdi7uveAKjYB7yQnartCxZnFWr0Xw=="+ },"enquirer": {"version": "2.4.1","resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz",@@ -65209,6 +65245,12 @@"@sideway/pinpoint": "^2.0.0"}},+ "jquery": {+ "version": "3.7.1",+ "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",+ "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==",+ "peer": true+ },"js-cookie": {"version": "2.2.1","resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz",@@ -65397,6 +65439,14 @@"integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==","dev": true},+ "json2mq": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz",+ "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==",+ "requires": {+ "string-convert": "^0.2.0"+ }+ },"json5": {"version": "2.2.3","resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",@@ -73075,6 +73125,18 @@"react-is": "^16.12.0 || ^17.0.0 || ^18.0.0"}},+ "react-slick": {+ "version": "0.30.2",+ "resolved": "https://registry.npmjs.org/react-slick/-/react-slick-0.30.2.tgz",+ "integrity": "sha512-XvQJi7mRHuiU3b9irsqS9SGIgftIfdV5/tNcURTb5LdIokRA5kIIx3l4rlq2XYHfxcSntXapoRg/GxaVOM1yfg==",+ "requires": {+ "classnames": "^2.2.5",+ "enquire.js": "^2.1.6",+ "json2mq": "^0.2.0",+ "lodash.debounce": "^4.0.8",+ "resize-observer-polyfill": "^1.5.0"+ }+ },"react-test-renderer": {"version": "18.2.0","resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-18.2.0.tgz",@@ -74508,6 +74570,12 @@"is-fullwidth-code-point": "^3.0.0"}},+ "slick-carousel": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/slick-carousel/-/slick-carousel-1.8.1.tgz",+ "integrity": "sha512-XB9Ftrf2EEKfzoQXt3Nitrt/IPbT+f1fgqBdoxO3W/+JYvtEOW6EgxnWfr9GH6nmULv7Y2tPmEX3koxThVmebA==",+ "requires": {}+ },"slide": {"version": "1.1.6","resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz",@@ -75015,6 +75083,11 @@"integrity": "sha512-p6/Mqq0utTQWUeGMi/m0uBtlLZEwXSY3+mXzeRRqw7fz5ezUb28Wr0R99NlfbWaMmL/jCyT9be4jpn7Yz8IO8w==","dev": true},+ "string-convert": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz",+ "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A=="+ },"string-length": {"version": "4.0.2","resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz",@@ -75458,11 +75531,6 @@}}},- "swiper": {- "version": "10.3.1",- "resolved": "https://registry.npmjs.org/swiper/-/swiper-10.3.1.tgz",- "integrity": "sha512-24Wk3YUdZHxjc9faID97GTu6xnLNia+adMt6qMTZG/HgdSUt4fS0REsGUXJOgpTED0Amh/j+gRGQxsLayJUlBQ=="- },"symbol-observable": {"version": "1.2.0","resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz",diff --git a/package.json b/package.jsonindex 685e92d2d..22e18ac15 100644--- a/package.json+++ b/package.json@@ -210,13 +210,14 @@"react-leaflet": "^4.2.1","react-qrcode-logo": "^2.8.0","react-redux": "^8.0.2",+ "react-slick": "^0.30.2","react-virtuoso": "^4.1.0","redux": "^4.2.0","redux-persist": "^5.10.0","redux-thunk": "^2.4.1","semver": "^7.3.5",+ "slick-carousel": "^1.8.1","source-map-support": "^0.5.21",- "swiper": "^10.2.0","tga-js": "1.1.1","ts-react-splitter": "^3.0.0","use-state-with-callback": "^2.0.3",diff --git a/src/renderer/app.global.css b/src/renderer/app.global.cssindex 16e2921a9..b394621f4 100644--- a/src/renderer/app.global.css+++ b/src/renderer/app.global.css@@ -7,6 +7,8 @@@import '~leaflet/dist/leaflet.css';@import '~react-image-gallery/styles/css/image-gallery.css';@import "~@tagspaces/tagspaces-md/lib/tailwind.css";+@import "~slick-carousel/slick/slick.css";+@import "~slick-carousel/slick/slick-theme.css";/* @import '~@tagspaces/tagspaces-md/lib/milkdown.css'; *//* Needed to disable border on focused HotKey element */diff --git a/src/renderer/components/dialogs/OnboardingDialog.tsx b/src/renderer/components/dialogs/OnboardingDialog.tsxindex 05d679e07..c7c41f675 100644--- a/src/renderer/components/dialogs/OnboardingDialog.tsx+++ b/src/renderer/components/dialogs/OnboardingDialog.tsx@@ -18,7 +18,7 @@import React, { useRef } from 'react';import { useSelector, useDispatch } from 'react-redux';-import { Navigation, Pagination } from 'swiper/modules';+import Slider from 'react-slick';import Button from '@mui/material/Button';import DialogContent from '@mui/material/DialogContent';import DialogTitle from '@mui/material/DialogTitle';@@ -46,10 +46,10 @@ import useMediaQuery from '@mui/material/useMediaQuery';import { openURLExternally } from '-/services/utils-io';import { AppDispatch } from '-/reducers/app';-import { register } from 'swiper/element/bundle';import { useTranslation } from 'react-i18next';--register();+import NavigateBeforeIcon from '@mui/icons-material/NavigateBefore';+import NavigateNextIcon from '@mui/icons-material/NavigateNext';+import { overflow } from 'html2canvas/dist/types/css/property-descriptors/overflow';interface Props {classes: any;@@ -64,7 +64,7 @@ function OnboardingDialog(props: Props) {const isPersistTagsInSidecar = useSelector(getPersistTagsInSidecarFile);const currentTheme = useSelector(getCurrentTheme);const dispatch: AppDispatch = useDispatch();- const swiperElRef = useRef(null); //<SwiperRef>+ //const swiperElRef = useRef(null); //<SwiperRef>/*useEffect(() => {if(swiperElRef.current){@@ -98,6 +98,39 @@ function OnboardingDialog(props: Props) {const theme = useTheme();const fullScreen = useMediaQuery(theme.breakpoints.down('md'));+ function NextArrow(props) {+ const { className, style, onClick } = props;+ return (+ <div className={className} onClick={onClick}>+ <NavigateNextIcon color="primary" />+ </div>+ );+ }++ function PrevArrow(props) {+ const { className, style, onClick } = props;+ return (+ <div className={className} onClick={onClick}>+ <NavigateBeforeIcon color="primary" />+ </div>+ );+ }++ const sliderSettings = {+ className: 'center',+ centerMode: true,+ dots: true,+ infinite: false,+ initialSlide: 0,+ centerPadding: '0px',+ speed: 500,+ slidesToShow: 1,+ slidesToScroll: 1,+ adaptiveHeight: true,+ nextArrow: <NextArrow />,+ prevArrow: <PrevArrow />,+ };+return (<Dialogopen={open}@@ -111,45 +144,40 @@ function OnboardingDialog(props: Props) {</DialogTitle><DialogContentstyle={{- marginTop: 20,+ margin: 'auto',overflowY: 'auto',+ overflowX: 'hidden',}}><style>{`- swiper-container::part(bullet-active) {- background-color: ${theme.palette.primary.main};- }- swiper-container::part(button-prev) {- color: ${theme.palette.primary.main};- }- swiper-container::part(button-next) {- color: ${theme.palette.primary.main};- }+ .slick-arrow {+ height: 200px;+ display: flex;+ align-items: center;+ }+ .slick-next:before {+ content: '';+ }+ .slick-prev:before {+ content: '';+ }`}</style>- <swiper-container- ref={swiperElRef}- slidesPerView={1}- navigation="true"- pagination={{- clickable: true,- }}- modules={[Pagination, Navigation]}- >- <swiper-slide>- <div- style={{- textAlign: 'center',- overflowX: 'hidden',- padding: 50,- }}- >+ <div style={{ width: 500, minHeight: 600, textAlign: 'center' }}>+ <Slider {...sliderSettings}>+ <div><Typography variant="h5">{t('core:welcomeToTagSpaces')}</Typography><img- style={{ maxHeight: 300, marginTop: 15, marginBottom: 40 }}+ style={{+ maxHeight: 300,+ paddingTop: 15,+ paddingBottom: 40,+ margin: 'auto',+ display: 'block',+ }}src={NewLook}alt=""/>@@ -167,14 +195,7 @@ function OnboardingDialog(props: Props) {<ToggleButton value="dark">Dark</ToggleButton></ToggleButtonGroup></div>- </swiper-slide>- <swiper-slide>- <div- style={{- textAlign: 'center',- padding: 50,- }}- >+ <div style={{ overflow: 'hidden' }}><Typography variant="h5">Choose your the default tagging method for files</Typography>@@ -241,20 +262,19 @@ function OnboardingDialog(props: Props) {stay.</Typography></div>- </swiper-slide>- <swiper-slide>- <div- style={{- textAlign: 'center',- padding: 50,- }}- >+ <div style={{ textAlign: 'center' }}><Typography variant="h5">Collect web pages, create bookmarks or take screenshot fromwebsites directly in your web browser.</Typography><img- style={{ maxHeight: 300, marginTop: 15, marginBottom: 20 }}+ style={{+ maxHeight: 300,+ paddingTop: 15,+ paddingBottom: 20,+ margin: 'auto',+ display: 'block',+ }}src={BrowserExtension}alt=""/>@@ -276,19 +296,18 @@ function OnboardingDialog(props: Props) {Get the web clipper</Button></div>- </swiper-slide>- <swiper-slide>- <div- style={{- textAlign: 'center',- padding: 50,- }}- >+ <div><Typography variant="h5">We hope you will love TagSpaces as much as we do!</Typography><img- style={{ maxHeight: 300, maxWidth: '90%', marginTop: 100 }}+ style={{+ maxHeight: 300,+ maxWidth: '90%',+ paddingTop: 70,+ margin: 'auto',+ display: 'block',+ }}src={WizardFinished}alt=""/>@@ -305,8 +324,8 @@ function OnboardingDialog(props: Props) {Start using TagSpaces</Button></div>- </swiper-slide>- </swiper-container>+ </Slider>+ </div></DialogContent></Dialog>);diff --git a/src/renderer/components/dialogs/ProTeaserDialog.tsx b/src/renderer/components/dialogs/ProTeaserDialog.tsxindex 75634d5fd..91f30623a 100644--- a/src/renderer/components/dialogs/ProTeaserDialog.tsx+++ b/src/renderer/components/dialogs/ProTeaserDialog.tsx@@ -16,7 +16,7 @@**/-import React, { useRef } from 'react';+import React from 'react';import Button from '@mui/material/Button';import DialogContent from '@mui/material/DialogContent';import DialogTitle from '@mui/material/DialogTitle';@@ -30,11 +30,10 @@ import { useSelector } from 'react-redux';import { getProTeaserSlides } from '-/content/ProTeaserSlides';import Links from 'assets/links';import { openURLExternally } from '-/services/utils-io';-import { register } from 'swiper/element/bundle';-import { Navigation, Pagination } from 'swiper/modules';import { useTranslation } from 'react-i18next';--register();+import Slider from 'react-slick';+import NavigateNextIcon from '@mui/icons-material/NavigateNext';+import NavigateBeforeIcon from '@mui/icons-material/NavigateBefore';interface Props {open: boolean;@@ -68,94 +67,96 @@ function Slide(props: SlideProps) {pictureShadow,} = props;return (- <swiper-slide>- <div- style={{- padding: 50,- textAlign: 'left',- }}+ <div+ style={{+ padding: 50,+ textAlign: 'left',+ }}+ >+ <Typography+ variant="h5"+ style={{ textAlign: 'center', paddingBottom: 10 }}>- <Typography- variant="h5"- style={{ textAlign: 'center', paddingBottom: 10 }}- >- {title}- </Typography>- {description && (- <Typography variant="subtitle1">{description}</Typography>- )}- {items &&- items.map((item) => (- <Typography variant="subtitle1">★ {item}</Typography>- ))}- <Typography variant="subtitle1"> </Typography>- <div style={{ textAlign: 'center' }}>- {pictureURL && (- <a- href="#"- onClick={() => {- openURLExternally(ctaURL, true);+ {title}+ </Typography>+ {description && (+ <Typography variant="subtitle1">{description}</Typography>+ )}+ {items &&+ items.map((item) => (+ <Typography variant="subtitle1">★ {item}</Typography>+ ))}+ <Typography variant="subtitle1"> </Typography>+ <div style={{ textAlign: 'center' }}>+ {pictureURL && (+ <a+ href="#"+ onClick={() => {+ openURLExternally(ctaURL, true);+ }}+ style={{+ paddingTop: 15,+ paddingBottom: 15,+ }}+ >+ <img+ style={{+ cursor: 'pointer',+ maxHeight: pictureHeight,+ margin: 'auto',+ display: 'block',+ boxShadow: pictureShadow+ ? '2px 2px 13px 0 rgb(0 0 0 / 75%'+ : 'none',+ maxWidth: '95%',}}- >- <img- style={{- cursor: 'pointer',- maxHeight: pictureHeight,- marginTop: 15,- marginBottom: 15,- boxShadow: pictureShadow- ? '2px 2px 13px 0 rgb(0 0 0 / 75%'- : 'none',- maxWidth: '95%',- }}- src={pictureURL}- alt=""- />- </a>- )}- {videoURL && (- <video- src={videoURL}- poster={videoPosterUrl}- autoPlay={true}- loop- controls- style={{ width: '100%', marginBottom: 15 }}+ src={pictureURL}+ alt=""/>- )}- <br />+ </a>+ )}+ {videoURL && (+ <video+ src={videoURL}+ poster={videoPosterUrl}+ autoPlay={true}+ loop+ controls+ style={{ width: '100%', marginBottom: 15 }}+ />+ )}+ <br />+ <Button+ onClick={() => {+ openURLExternally(Links.links.productsOverview, true);+ }}+ // variant="contained"+ color="primary"+ size="small"+ >+ Compare TagSpaces Products+ </Button>+ {ctaTitle && (<ButtononClick={() => {- openURLExternally(Links.links.productsOverview, true);+ openURLExternally(ctaURL, true);}}+ style={{ marginLeft: 10 }}// variant="contained"color="primary"size="small">- Compare TagSpaces Products+ {ctaTitle}</Button>- {ctaTitle && (- <Button- onClick={() => {- openURLExternally(ctaURL, true);- }}- style={{ marginLeft: 10 }}- // variant="contained"- color="primary"- size="small"- >- {ctaTitle}- </Button>- )}- </div>+ )}</div>- </swiper-slide>+ </div>);}function ProTeaserDialog(props: Props) {const { t } = useTranslation();- const swiperElRef = useRef(null); //<SwiperRef>+ //const swiperElRef = useRef(null); //<SwiperRef>const slideIndex = useSelector(getProTeaserIndex);const slidesEN = getProTeaserSlides(t);@@ -172,6 +173,39 @@ function ProTeaserDialog(props: Props) {const initialSlide = slideIndex && slideIndex > -1 ? Number(slideIndex) : 0;+ function NextArrow(props) {+ const { className, style, onClick } = props;+ return (+ <div className={className} onClick={onClick}>+ <NavigateNextIcon color="primary" />+ </div>+ );+ }++ function PrevArrow(props) {+ const { className, style, onClick } = props;+ return (+ <div className={className} onClick={onClick}>+ <NavigateBeforeIcon color="primary" />+ </div>+ );+ }++ const sliderSettings = {+ className: 'center',+ centerMode: true,+ dots: true,+ infinite: false,+ initialSlide: initialSlide,+ centerPadding: '0px',+ speed: 500,+ slidesToShow: 1,+ slidesToScroll: 1,+ adaptiveHeight: true,+ nextArrow: <NextArrow />,+ prevArrow: <PrevArrow />,+ };+return (<Dialogopen={open}@@ -185,40 +219,26 @@ function ProTeaserDialog(props: Props) {</DialogTitle><DialogContentstyle={{- paddingBottom: 0,overflowY: 'auto',+ overflowX: 'hidden',}}><style>{`- swiper-container::part(bullet-active) {- background-color: ${theme.palette.primary.main};- }- swiper-container::part(button-prev) {- color: ${theme.palette.primary.main};- }- swiper-container::part(button-next) {- color: ${theme.palette.primary.main};- }+ .slick-arrow {+ height: 200px;+ display: flex;+ align-items: center;+ }+ .slick-next:before {+ content: '';+ }+ .slick-prev:before {+ content: '';+ }`}</style>- <swiper-container- ref={swiperElRef}- initialSlide={initialSlide}- slidesPerView={1}- navigation={true}- /*scrollbar={true}*/- pagination={{- clickable: true,- }}- cssMode={false}- /*keyboard={{- enabled: true- }}*/- modules={[Pagination, Navigation]}- >- {slides}- </swiper-container>+ <Slider {...sliderSettings}>{slides}</Slider></DialogContent></Dialog>);