Skip to content

Commit

Permalink
lint: fix names and auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Majortheus committed Feb 20, 2023
1 parent 850902d commit 8316587
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const metadata = {
follow: true,
},
description: "CTO at @Rocketseat. Passionate about education and changing people's lives through programming.",
};
}

export default function RootLayout({
children,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function CodePreview({ code, raw }: CodePreviewProps) {
<CheckIcon size={16} className="text-emerald-400" />
<span className="w-32">Copied!</span>
</>
) : (
): (
<>
<CopyIcon size={16} />
<span className="w-32">Copy to Clipboard</span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Explorer/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import * as Collapsible from '@radix-ui/react-collapsible';
import { ChevronDown, ChevronRight, Folder as FolderIcon } from 'lucide-react';
import { ReactNode, useState } from 'react';

interface FolderProps {
interface SubMenuProps {
title: string;
children: ReactNode;
defaultOpen?: boolean;
}

export function SubMenu({ title, children, defaultOpen = false }: FolderProps) {
export function SubMenu({ title, children, defaultOpen = false }: SubMenuProps) {
const [isOpen, setIsOpen] = useState(defaultOpen);

return (
Expand Down

0 comments on commit 8316587

Please sign in to comment.