Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 93 commits from feature/challenge-vtex-io into develop 2023-02-03 17:14:03 +00:00
2 changed files with 24 additions and 0 deletions
Showing only changes of commit fce9bb36dc - Show all commits

View File

@ -0,0 +1,3 @@
import Swiper from "./components/SwiperComponent/SwiperComponent";
export default Swiper;

View File

@ -0,0 +1,21 @@
const Swiper = () => {
if (typeof document !== "undefined") {
const SwiperContainer = document.querySelector(".swiper-container");
const SwiperWrapper = document.querySelector(".swiper-wrapper");
if (SwiperContainer) {
SwiperContainer.classList.remove("swiper-container-vertical");
SwiperContainer.classList.add("swiper-container-horizontal");
SwiperContainer.classList.add(
"vtex-store-components-3-x-swiper-component"
);
}
if (SwiperWrapper) {
SwiperWrapper.classList.add(
"vtex-store-components-3-x-swiper-wrapper-style"
);
}
}
return null;
};
export default Swiper;