chore: rename to slide

This commit is contained in:
Ephraim Atta-Duncan
2024-06-10 13:44:43 +00:00
parent 1fda9ed2a6
commit 2bf0d42fbd
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import { useTheme } from 'next-themes';
import { Card } from '@documenso/ui/primitives/card'; import { Card } from '@documenso/ui/primitives/card';
import { Progress } from '@documenso/ui/primitives/progress'; import { Progress } from '@documenso/ui/primitives/progress';
import { Thumb } from './thumb'; import { Slide } from './slide';
const SLIDES = [ const SLIDES = [
{ {
@ -264,7 +264,7 @@ export const Carousel = () => {
<div className="mx-auto mt-12 max-w-4xl px-2"> <div className="mx-auto mt-12 max-w-4xl px-2">
<div className="mt-2 flex justify-between" ref={emblaThumbsRef}> <div className="mt-2 flex justify-between" ref={emblaThumbsRef}>
{slides.map((slide, index) => ( {slides.map((slide, index) => (
<Thumb <Slide
key={index} key={index}
onClick={() => onThumbClick(index)} onClick={() => onThumbClick(index)}
selected={index === selectedIndex} selected={index === selectedIndex}

View File

@ -2,14 +2,14 @@ import React from 'react';
import { cn } from '@documenso/ui/lib/utils'; import { cn } from '@documenso/ui/lib/utils';
type PropType = { type SlideProps = {
selected: boolean; selected: boolean;
index: number; index: number;
onClick: () => void; onClick: () => void;
label: string; label: string;
}; };
export const Thumb: React.FC<PropType> = (props) => { export const Slide: React.FC<SlideProps> = (props) => {
const { selected, label, onClick } = props; const { selected, label, onClick } = props;
return ( return (