mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-17 01:23:39 -05:00
Make local images collapsible
This commit is contained in:
@@ -13,14 +13,7 @@ export function Server({
|
|||||||
name: string;
|
name: string;
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
if (name.length === 0)
|
if (name.length === 0) name = "Local images";
|
||||||
return (
|
|
||||||
<li className="mb-8 last:mb-0">
|
|
||||||
<ul className={`dark:divide-${theme}-900 divide-y dark:text-white`}>
|
|
||||||
{children}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
);
|
|
||||||
return (
|
return (
|
||||||
<Disclosure defaultOpen as="li" className={`mb-4 last:mb-0`}>
|
<Disclosure defaultOpen as="li" className={`mb-4 last:mb-0`}>
|
||||||
<DisclosureButton className="group my-4 flex w-full items-center justify-between px-6">
|
<DisclosureButton className="group my-4 flex w-full items-center justify-between px-6">
|
||||||
|
|||||||
Reference in New Issue
Block a user