Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
demenech committed Sep 15, 2022
1 parent 5f400c6 commit d1f8b3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/_shared/carousel/card/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ const Carousel: React.FC<{
const nextEl = '.nav-next-button';

let css;
if(color) {
if (color) {
css = `
.swiper-bullet-active {
background: ${color} !important;
}`
}`;
}

return (
Expand Down
1 change: 0 additions & 1 deletion components/_shared/image_header/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const Badge: React.FC<{ text: string; color?: string }> = ({
text,
color,
}) => {

return (
<>
<span
Expand Down
6 changes: 5 additions & 1 deletion components/topic/SubtopicsCarousel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import Carousel from '../_shared/carousel/card/Carousel';

const SubtopicsCarousel: React.FC<any> = ({ subtopics, subtopicOnClick, color }) => {
const SubtopicsCarousel: React.FC<any> = ({
subtopics,
subtopicOnClick,
color,
}) => {
const items = subtopics.map((subtopic) => {
return {
name: subtopic.name,
Expand Down

0 comments on commit d1f8b3c

Please sign in to comment.