Format code better

This commit is contained in:
Meliora Ho 2024-03-23 15:54:52 +00:00
parent 1f4e272979
commit 52e23b7f85
7 changed files with 76 additions and 76 deletions

View File

@ -2,7 +2,7 @@
import Sidebar from '@/components/resource/Sidebar';
import React, { useState } from 'react';
import {ChevronDoubleRightIcon} from '@heroicons/react/24/outline';
import { ChevronDoubleRightIcon } from '@heroicons/react/24/outline';
export default function RootLayout({

View File

@ -1,4 +1,4 @@
import React, {ReactNode} from "react";
import React, { ReactNode } from "react";
interface TagProps {

View File

@ -42,4 +42,4 @@ export const LandingSearchBar: React.FC = () => {
</div>
</div>
);
};
};

View File

@ -6,7 +6,7 @@ interface SidebarProps {
setIsSidebarOpen: React.Dispatch<React.SetStateAction<boolean>>;
}
const Sidebar: React.FC<SidebarProps> = ({setIsSidebarOpen}) => {
const Sidebar: React.FC<SidebarProps> = ({ setIsSidebarOpen }) => {
return (
<div className="w-64 h-full border border-gray-200 bg-gray-50 px-4 shadow">
<div className="flex justify-end">

View File

@ -2,7 +2,7 @@
interface SidebarItemProps {
icon: React.ReactElement;
text: string;
}
}
export const SidebarItem: React.FC<SidebarItemProps> = ({ icon, text }) => {
return (
@ -11,4 +11,4 @@ export const SidebarItem: React.FC<SidebarItemProps> = ({ icon, text }) => {
<span className="flex-grow font-medium text-xs text-gray-500">{text}</span>
</a>
);
};
};