fix: resolve syntax error and missing AlertCircle import in furni upload
This commit is contained in:
1 parent
226d280c22
commit
fdbb143558
1 file changed
+2
-6
@@ -3,6 +3,7 @@
|
|||||||
import { AlertCircle, Check, Loader2, Upload } from "lucide-react";
|
import { AlertCircle, Check, Loader2, Upload } from "lucide-react";
|
||||||
import { useRef, useState } from "react";
|
import { useRef, useState } from "react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
import { ImportErrorBanner } from "@/components/admin/import-error-banner";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
@@ -303,12 +304,7 @@ export function UploadFurniClient() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{error && (
|
{error && <ImportErrorBanner error={error} />}
|
||||||
<div className="rounded-lg border px-4 py-3 text-sm bg-destructive/10 border-destructive/20 text-destructive flex items-center gap-2">
|
|
||||||
<AlertCircle className="w-4 h-4 shrink-0" />
|
|
||||||
{error}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="flex gap-3">
|
<div className="flex gap-3">
|
||||||
<Button type="submit" disabled={uploading}>
|
<Button type="submit" disabled={uploading}>
|
||||||
|
|||||||
Reference in new issue
Block a user