From 06bdab644034ac0839f5ac78ba6d0017d1241e5e Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sat, 1 Oct 2022 09:36:27 +0800 Subject: [PATCH] chore: add prettier-plugin-tailwindcss --- apps/portal/package.json | 1 + apps/portal/src/components/global/AppShell.tsx | 6 +++--- packages/ui/package.json | 1 + yarn.lock | 5 +++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/portal/package.json b/apps/portal/package.json index 41a2e182..7bb2775c 100644 --- a/apps/portal/package.json +++ b/apps/portal/package.json @@ -41,6 +41,7 @@ "@types/react-dom": "^18.0.6", "autoprefixer": "^10.4.12", "postcss": "^8.4.16", + "prettier-plugin-tailwindcss": "^0.1.13", "prisma": "^4.4.0", "tailwindcss": "^3.1.8", "typescript": "4.8.3" diff --git a/apps/portal/src/components/global/AppShell.tsx b/apps/portal/src/components/global/AppShell.tsx index b218ad31..fde9d3b6 100644 --- a/apps/portal/src/components/global/AppShell.tsx +++ b/apps/portal/src/components/global/AppShell.tsx @@ -112,7 +112,7 @@ export default function AppShell({ children }: Props) { const [mobileMenuOpen, setMobileMenuOpen] = useState(false); return ( -
+
{/* Narrow sidebar */}
@@ -132,7 +132,7 @@ export default function AppShell({ children }: Props) { item.current ? 'bg-indigo-800 text-white' : 'text-indigo-100 hover:bg-indigo-800 hover:text-white', - 'group w-full p-3 rounded-md flex flex-col items-center text-xs font-medium', + 'group flex w-full flex-col items-center rounded-md p-3 text-xs font-medium', )} href={item.href}> =2.2.1 <=2.3.0": version "2.3.0" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"