Adjust Appearance of side bar
This commit is contained in:
@@ -17,8 +17,8 @@ export default function Sidebar({ messages, locale }: Props) {
|
|||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
|
|
||||||
const [currentKey, setCurrentTab] = useState("home");
|
const [currentKey, setCurrentTab] = useState("home");
|
||||||
const baseClass = "p-3 rounded-none";
|
const baseClass = "p-3";
|
||||||
const selectedClass = `${baseClass} bg-neutral-200 dark:bg-neutral-700 border-l-3 border-neutral-800`;
|
const selectedClass = `${baseClass} bg-neutral-200 dark:bg-neutral-700`;
|
||||||
|
|
||||||
const handleTabClick = (key: string) => {
|
const handleTabClick = (key: string) => {
|
||||||
if (key === "home") {
|
if (key === "home") {
|
||||||
@@ -64,7 +64,7 @@ export default function Sidebar({ messages, locale }: Props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-64 border-r-1 dark:border-neutral-700">
|
<div className="w-64 border-r-1 dark:border-neutral-700">
|
||||||
<Listbox aria-label="Listbox Variants" variant="light" className="p-0">
|
<Listbox aria-label="Listbox Variants" variant="light">
|
||||||
{tabItems.map((itr) => (
|
{tabItems.map((itr) => (
|
||||||
<ListboxItem
|
<ListboxItem
|
||||||
key={itr.key}
|
key={itr.key}
|
||||||
|
|||||||
Reference in New Issue
Block a user