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

View File

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