build: format the code with prettier

This commit is contained in:
Tristan Yang
2023-05-19 16:31:28 +08:00
parent 7afc132bbb
commit 5bd0183651
259 changed files with 7627 additions and 5607 deletions
+21 -8
View File
@@ -1,10 +1,11 @@
import { useTranslation } from "react-i18next";
import { NavLink, useLocation } from "react-router-dom";
import Tippy from "@tippyjs/react";
import IconAdd from "@/assets/icons/add.svg";
import Tooltip from "./Tooltip";
import AddEntriesMenu from "./AddEntriesMenu";
import { useAppSelector } from "@/app/store";
import { useTranslation } from "react-i18next";
import IconAdd from "@/assets/icons/add.svg";
import AddEntriesMenu from "./AddEntriesMenu";
import Tooltip from "./Tooltip";
type Props = {
readonly?: boolean;
@@ -25,13 +26,19 @@ export default function Server({ readonly = false }: Props) {
<NavLink to={"/"} className="relative flex items-center justify-between gap-2 px-4 py-2">
<div className="flex items-center gap-2">
<div className="w-8 h-8">
<img alt={`${name} logo`} className="w-full h-full object-cover rounded-full" src={logo} />
<img
alt={`${name} logo`}
className="w-full h-full object-cover rounded-full"
src={logo}
/>
</div>
<div className="flex flex-col gap-1">
<h3 className="text-sm text-gray-600 dark:text-gray-100" title={description}>
{name}
</h3>
<span className="text-xs text-gray-500">{userCount} {t("members")}</span>
<span className="text-xs text-gray-500">
{userCount} {t("members")}
</span>
</div>
</div>
</NavLink>
@@ -42,13 +49,19 @@ export default function Server({ readonly = false }: Props) {
<NavLink to={`/setting/overview?f=${pathname}`}>
<div className="flex items-center gap-2">
<div className="w-8 h-8">
<img alt={`${name} logo`} className="w-full h-full object-cover rounded-full" src={logo} />
<img
alt={`${name} logo`}
className="w-full h-full object-cover rounded-full"
src={logo}
/>
</div>
<div className="flex flex-col gap-1">
<h3 className="text-sm text-gray-600 font-bold dark:text-gray-100" title={description}>
{name}
</h3>
<span className="text-xs text-gray-500">{userCount} {t("members")}</span>
<span className="text-xs text-gray-500">
{userCount} {t("members")}
</span>
</div>
</div>
</NavLink>