Skip to content

Commit

Permalink
fix: fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchan32 committed Jun 2, 2024
1 parent 1e5ada3 commit ca27c0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/components/ThemesSlider/ThemesSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ import SliderArrow from './SliderArrow/SliderArrow';

import { useState } from 'react';

export type slideContent = {
export type SlideContent = {
theme: string;
themeColor?: string;
description: string;
nonProfits: Array<string>;
nonProfits: {
link: string;
text: string;
}[];
};

export default function ThemesSlider({
slidesContent
}: {
slidesContent: Array<slideContent>;
slidesContent: Array<SlideContent>;
}) {
const [currentSlide, setCurrentSlide] = useState(0);
const [loaded, setLoaded] = useState(false);
Expand Down

0 comments on commit ca27c0c

Please sign in to comment.