mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +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 { 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}
|
||||||
|
|||||||
@ -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 (
|
||||||
Reference in New Issue
Block a user