mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-10 06:10:17 -04:00
Format code better
This commit is contained in:
parent
1f4e272979
commit
52e23b7f85
|
@ -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({
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, {ReactNode} from "react";
|
||||
import React, { ReactNode } from "react";
|
||||
|
||||
|
||||
interface TagProps {
|
||||
|
|
|
@ -42,4 +42,4 @@ export const LandingSearchBar: React.FC = () => {
|
|||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user