Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Aug 8, 2024
1 parent affb9b7 commit fc08b73
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
13 changes: 4 additions & 9 deletions component/TocBreadcrumb.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import {
Breadcrumb,
BreadcrumbEllipsis,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from '@/component/UI/breadcrumb';

import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuPortal,
DropdownMenuSeparator,
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
Expand Down Expand Up @@ -92,8 +88,9 @@ export const TocBreadcrumb = ({ selectedLesson }: TocBreadcrumbProps) => {
<Link
className="no-underline text-black"
href={lesson.link}
key={i}
>
<DropdownMenuItem key={i}>
<DropdownMenuItem>
<Circle
fill="black"
size={8}
Expand Down Expand Up @@ -140,11 +137,9 @@ export const TocBreadcrumb = ({ selectedLesson }: TocBreadcrumbProps) => {
<Link
className="no-underline text-black"
href={lesson.link}
key={i}
>
<DropdownMenuItem
key={i}
className="flex justify-between gap-4"
>
<DropdownMenuItem className="flex justify-between gap-4">
<div className="flex items-center">
<Circle
fill="black"
Expand Down
4 changes: 0 additions & 4 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/component/UI",
"utils": "@/util/utils"
}
}
6 changes: 3 additions & 3 deletions hook/use-dimensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const useDimensions = (targetRef: React.RefObject<HTMLDivElement>) => {
return () => window.removeEventListener("resize", handleResize);
}, []);

useLayoutEffect(() => {
handleResize();
}, [targetRef]);
// useLayoutEffect(() => {
// handleResize();
// }, [targetRef]);

return dimensions;
}
Expand Down
5 changes: 2 additions & 3 deletions pages/course/scales/introduction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ export default function Home() {
onMouseEnter={() => setDraggingCircleId(null)}
>
{circles.map((circle) => (
<>
<g key={circle.id}>
<circle
key={circle.id}
cx={circle.cx}
cy={140}
r={30}
Expand All @@ -147,7 +146,7 @@ export default function Home() {
>
{circle.value}
</text>
</>
</g>
))}

{/* Annotation */}
Expand Down

0 comments on commit fc08b73

Please sign in to comment.