Skip to content

Commit

Permalink
fixed linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalverson committed Oct 23, 2024
1 parent 4a24f3c commit a2d91ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/colorPicker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import { useEffect } from "react";
import { Radio, RadioGroup } from "@headlessui/react";
import { ColorsResponse } from "../interfaces";
// const BASE_URL = import.meta.env.VITE_BASE_URL;
Expand Down
3 changes: 0 additions & 3 deletions src/pages/Product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { lazy, Suspense, useState } from "react";
import { ShoppingBagIcon, UserIcon } from "@heroicons/react/24/outline";
import ColorPicker from "../components/colorPicker";
import FilamentDropdown from '../components/filamentDropdown';
import { useColorStore } from '../store/colorStore';

const PreviewComponent = lazy(() => import("../components/PreviewComponent"));

Expand All @@ -17,7 +16,6 @@ const product = {

export default function ProductPage() {
const [selectedFilament, setSelectedFilament] = useState<string>("PLA");
const [selectedColor, setSelectedColor] = useState<string>("");

return (
<div className="bg-white">
Expand Down Expand Up @@ -82,7 +80,6 @@ export default function ProductPage() {
<div className="grid grid-cols-1 lg:grid-cols-2 lg:grid-rows-3 lg:gap-8">
<Suspense fallback={<div>Loading...</div>}>
<PreviewComponent
color={selectedColor} // Pass selectedColor to PreviewComponent
url="https://pub-0ec69c7d5c064de8b57f5d594f07bc02.r2.dev/pyramid.stl"
onExceedsLimit={() => false}
onError={() => (
Expand Down

0 comments on commit a2d91ea

Please sign in to comment.