fixed build issues. its builds now
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import type { PriceHistoryPoint } from "@/app/(app)/(builder)/parts/__DELETE[partRole]/_old_prod_details/data";
|
||||
type PriceHistoryPoint = {
|
||||
date: string;
|
||||
price: number;
|
||||
};
|
||||
|
||||
interface PricingHistoryGraphProps {
|
||||
data: PriceHistoryPoint[];
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
"use client";
|
||||
|
||||
import type { RetailerOffer } from "@/app/(app)/(builder)/parts/__DELETE[partRole]/_old_prod_details/data";
|
||||
type RetailerOffer = {
|
||||
id?: string | number;
|
||||
retailer: string;
|
||||
price: number;
|
||||
originalPrice?: number;
|
||||
url: string;
|
||||
affiliateUrl?: string;
|
||||
inStock: boolean;
|
||||
};
|
||||
|
||||
interface RetailersListProps {
|
||||
retailers: RetailerOffer[];
|
||||
@@ -46,7 +54,7 @@ export function RetailersList({ retailers }: RetailersListProps) {
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<span className="text-sm font-semibold text-zinc-50">
|
||||
{retailer.retailerName}
|
||||
{retailer.retailer}
|
||||
</span>
|
||||
{isLowestPrice && retailer.inStock && (
|
||||
<span className="text-[0.65rem] font-semibold uppercase tracking-wide px-1.5 py-0.5 rounded bg-amber-400/20 text-amber-300 border border-amber-400/30">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { sendEmailAction, type ApiResponse, type EmailRequest } from "/app/actions/sendEmail";
|
||||
import { sendEmailAction, type ApiResponse, type EmailRequest } from "@/app/actions/sendEmail";
|
||||
import { Button, Field, Input, Textarea } from "@/components/ui/form";
|
||||
|
||||
export default function SendEmailForm(): JSX.Element {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { sendEmailAction, type ApiResponse, type EmailRequest } from "/app/actions/sendEmail";
|
||||
import { sendEmailAction, type ApiResponse, type EmailRequest } from "@/app/actions/sendEmail";
|
||||
import { Button, Field, Input } from "@/components/ui/form";
|
||||
import RichTextEditor from "@/components/ui/RichTextEditor";
|
||||
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
"use client";
|
||||
import QuillImageResize from "quill-image-resize-module";
|
||||
Quill.register("modules/imageResize", QuillImageResize);
|
||||
import dynamic from "next/dynamic";
|
||||
import type React from "react";
|
||||
|
||||
import "react-quill/dist/quill.snow.css";
|
||||
|
||||
// Import Quill modules after React Quill is loaded
|
||||
if (typeof window !== 'undefined') {
|
||||
const Quill = require('quill');
|
||||
const QuillImageResize = require('quill-image-resize-module').default;
|
||||
Quill.register("modules/imageResize", QuillImageResize);
|
||||
}
|
||||
|
||||
const ReactQuill = dynamic(() => import("react-quill"), { ssr: false });
|
||||
|
||||
type RichTextEditorProps = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { sendEmailAction, type ApiResponse, type EmailRequest } from "/app/actions/sendEmail";
|
||||
import { sendEmailAction, type ApiResponse, type EmailRequest } from "@/app/actions/sendEmail";
|
||||
import { Button, Field, Input } from "@/components/ui/form";
|
||||
import RichTextEditor from "@/components/ui/RichTextEditor";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user