update swiper and tsconfig

This commit is contained in:
somrat sorkar
2023-07-06 10:24:58 +06:00
parent ad03af58a3
commit ebf127bc21
4 changed files with 14 additions and 13 deletions
+4 -3
View File
@@ -79,9 +79,10 @@ const { testimonial } = Astro.props;
}
<script>
import Swiper, { Autoplay, Pagination } from "swiper";
import "swiper/css";
import "swiper/css/pagination";
import { Swiper } from "swiper";
import "swiper/css";
import "swiper/css/pagination";
import { Autoplay, Pagination } from "swiper/modules";
new Swiper(".testimonial-slider", {
modules: [Pagination, Autoplay],
+1 -1
View File
@@ -48,7 +48,7 @@ const htmlEntityDecoder = (htmlWithEntities: string): string => {
/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,
(entity: string): string => {
return entityList[entity];
}
},
);
return htmlWithoutEntities;
};