Skip to content

Commit

Permalink
change button component file name
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Aug 9, 2024
1 parent 0acbcf7 commit 36ec072
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion component/ChartOrSandbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactNode, useRef, useState } from 'react';
import { useDimensions } from '../hook/use-dimensions';
import { Caption } from './UI/Caption';
import { CodeSandbox } from './CodeSandbox';
import { Button } from './UI/button';
import { Button } from './UI/buttonFromShadcnUI';

type ChartOrSandboxProps = {
VizComponent: (props: {
Expand Down
2 changes: 1 addition & 1 deletion component/CodeSandboxButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Each folder in the /src/viz folder is a codesandbox showing the related viz component
// Just pass the folder name to this component and it will embed the codesandbox
import React from 'react';
import { Button } from '@/component/UI/button';
import { Button } from '@/component/UI/buttonFromShadcnUI';
import { CodeSandbox } from './CodeSandbox';

type CodeSandboxButtonProps = {
Expand Down
2 changes: 1 addition & 1 deletion component/TocBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from './UI/dropdown-menu';
import { Button, buttonVariants } from '@/component/UI/button';
import { Button, buttonVariants } from '@/component/UI/buttonFromShadcnUI';
import { moduleList } from '@/util/moduleList';
import { Lesson, lessonList } from '@/util/lessonList';
import { Circle } from 'lucide-react';
Expand Down
File renamed without changes.
12 changes: 1 addition & 11 deletions pages/course/scales/introduction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,8 @@ import React, { useCallback, useState } from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeSandbox } from '@/component/CodeSandbox';
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/component/UI/select';
import { Sidenote } from '@/component/SideNote';
import { MoveHorizontal, MoveVertical } from 'lucide-react';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { Button } from '@/component/UI/button';
import { Button } from '@/component/UI/buttonFromShadcnUI';

const previousURL = '/course/svg/path-element';
const currentURL = '/course/scales/introduction';
Expand Down
2 changes: 1 addition & 1 deletion pages/react-d3-dataviz-course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Lesson, lessonList } from '@/util/lessonList';
import { Badge } from '@/component/UI/badge';
import { moduleList } from '@/util/moduleList';
import { LessonBadge } from '@/component/LessonBadge';
import { buttonVariants } from '@/component/UI/button';
import { buttonVariants } from '@/component/UI/buttonFromShadcnUI';

const graphDescription = (
<>
Expand Down

0 comments on commit 36ec072

Please sign in to comment.