mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
chore: rename to slide
This commit is contained in:
@ -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}
|
||||
|
||||
@ -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 (
|
||||
Reference in New Issue
Block a user