mirror of
https://github.com/Fayorg/calendrier-avant.git
synced 2026-05-27 17:18:38 +02:00
fix: moved images to assets
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import Image from "next/image";
|
||||
import Image from 'next/image';
|
||||
|
||||
import { santas } from "@santa/index";
|
||||
import { santas } from '@/assets/images/santa/index';
|
||||
|
||||
interface SantaProps {
|
||||
height: number
|
||||
height: number;
|
||||
}
|
||||
export function Santa({ ...props} : SantaProps) {
|
||||
if (props.height <= 0 || props.height > 24) {
|
||||
return <div className={"w-[100px] bg-blue-500"}/>
|
||||
}
|
||||
return (
|
||||
<div className="flex flex-col items-center">
|
||||
<Image src={santas[props.height - 1]} alt={"Santa"} width={100} height={200}/>
|
||||
</div>
|
||||
)
|
||||
export function Santa({ ...props }: SantaProps) {
|
||||
if (props.height <= 0 || props.height > 24) {
|
||||
return <div className={'w-[100px] bg-blue-500'} />;
|
||||
}
|
||||
return (
|
||||
<div className="flex flex-col items-center">
|
||||
<Image src={santas[props.height - 1]} alt={'Santa'} width={100} height={200} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import Calendar from '../../images/date.svg';
|
||||
import Calendar from '@images/date.svg';
|
||||
import Image from 'next/image';
|
||||
|
||||
import { Ban, Snowflake, CircleOff } from 'lucide-react';
|
||||
|
||||
Reference in New Issue
Block a user