mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-18 01:40:15 -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 Sidebar from '@/components/resource/Sidebar';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import {ChevronDoubleRightIcon} from '@heroicons/react/24/outline';
|
import { ChevronDoubleRightIcon } from '@heroicons/react/24/outline';
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import React, {ReactNode} from "react";
|
import React, { ReactNode } from "react";
|
||||||
|
|
||||||
|
|
||||||
interface TagProps {
|
interface TagProps {
|
||||||
|
|
|
@ -42,4 +42,4 @@ export const LandingSearchBar: React.FC = () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,7 +6,7 @@ interface SidebarProps {
|
||||||
setIsSidebarOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
setIsSidebarOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Sidebar: React.FC<SidebarProps> = ({setIsSidebarOpen}) => {
|
const Sidebar: React.FC<SidebarProps> = ({ setIsSidebarOpen }) => {
|
||||||
return (
|
return (
|
||||||
<div className="w-64 h-full border border-gray-200 bg-gray-50 px-4 shadow">
|
<div className="w-64 h-full border border-gray-200 bg-gray-50 px-4 shadow">
|
||||||
<div className="flex justify-end">
|
<div className="flex justify-end">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
interface SidebarItemProps {
|
interface SidebarItemProps {
|
||||||
icon: React.ReactElement;
|
icon: React.ReactElement;
|
||||||
text: string;
|
text: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SidebarItem: React.FC<SidebarItemProps> = ({ icon, text }) => {
|
export const SidebarItem: React.FC<SidebarItemProps> = ({ icon, text }) => {
|
||||||
return (
|
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>
|
<span className="flex-grow font-medium text-xs text-gray-500">{text}</span>
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user