Skip to content

Commit

Permalink
chore: run code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
satnaing committed Nov 11, 2024
1 parent 956884b commit 456b327
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function NavLinkIconDropdown({ title, icon, label, sub }: NavLinkProps) {
<Button
variant={isChildActive ? 'secondary' : 'ghost'}
size='icon'
className='w-12 h-12'
className='h-12 w-12'
>
{icon}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function Sidebar({
onClick={() => setIsCollapsed((prev) => !prev)}
size='icon'
variant='outline'
className='absolute z-50 hidden rounded-full -right-5 top-1/2 md:inline-flex'
className='absolute -right-5 top-1/2 z-50 hidden rounded-full md:inline-flex'
>
<IconChevronsLeft
stroke={1.5}
Expand Down
8 changes: 4 additions & 4 deletions src/components/user-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import {
import { useTranslations } from 'use-intl'

export function UserNav() {
const t = useTranslations('userNav');
const t = useTranslations('userNav')
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant='ghost' className='relative w-8 h-8 rounded-full'>
<Avatar className='w-8 h-8'>
<Button variant='ghost' className='relative h-8 w-8 rounded-full'>
<Avatar className='h-8 w-8'>
<AvatarImage src='/avatars/01.png' alt='@shadcn' />
<AvatarFallback>SN</AvatarFallback>
</Avatar>
Expand Down Expand Up @@ -47,7 +47,7 @@ export function UserNav() {
{t('settings')}
<DropdownMenuShortcut>⌘S</DropdownMenuShortcut>
</DropdownMenuItem>
<DropdownMenuItem>{t("new_team")}</DropdownMenuItem>
<DropdownMenuItem>{t('new_team')}</DropdownMenuItem>
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuItem>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/errors/general-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function GeneralError({
const t = useTranslations('error')
return (
<div className={cn('h-svh w-full', className)}>
<div className='flex flex-col items-center justify-center w-full h-full gap-2 m-auto'>
<div className='m-auto flex h-full w-full flex-col items-center justify-center gap-2'>
{!minimal && (
<h1 className='text-[7rem] font-bold leading-tight'>500</h1>
)}
Expand All @@ -24,7 +24,7 @@ export default function GeneralError({
{t.rich('500_desc', { br: () => <br /> })}
</p>
{!minimal && (
<div className='flex gap-4 mt-6'>
<div className='mt-6 flex gap-4'>
<Button variant='outline' onClick={() => navigate(-1)}>
{t('go_back')}
</Button>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/errors/maintenance-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ export default function MaintenanceError() {
const t = useTranslations('error')
return (
<div className='h-svh'>
<div className='flex flex-col items-center justify-center w-full h-full gap-2 m-auto'>
<div className='m-auto flex h-full w-full flex-col items-center justify-center gap-2'>
<h1 className='text-[7rem] font-bold leading-tight'>503</h1>
<span className='font-medium'>{t('maintenance_title')}</span>
<p className='text-center text-muted-foreground'>
{t.rich('maintenance_desc', { br: () => <br /> })}
</p>
<div className='flex gap-4 mt-6'>
<div className='mt-6 flex gap-4'>
<Button variant='outline'>{t('learn_more')}</Button>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/errors/not-found-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export default function NotFoundError() {
const t = useTranslations('error')
return (
<div className='h-svh'>
<div className='flex flex-col items-center justify-center w-full h-full gap-2 m-auto'>
<div className='m-auto flex h-full w-full flex-col items-center justify-center gap-2'>
<h1 className='text-[7rem] font-bold leading-tight'>404</h1>
<span className='font-medium'>{t('404_title')}</span>
<p className='text-center text-muted-foreground'>
{t.rich('404_desc', { br: () => <br /> })}
</p>
<div className='flex gap-4 mt-6'>
<div className='mt-6 flex gap-4'>
<Button variant='outline' onClick={() => navigate(-1)}>
{t('go_back')}
</Button>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/errors/unauthorised-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export default function UnauthorisedError() {
const t = useTranslations('error')
return (
<div className='h-svh'>
<div className='flex flex-col items-center justify-center w-full h-full gap-2 m-auto'>
<div className='m-auto flex h-full w-full flex-col items-center justify-center gap-2'>
<h1 className='text-[7rem] font-bold leading-tight'>401</h1>
<span className='font-medium'>{t('unauthorised_title')}</span>
<p className='text-center text-muted-foreground'>
{t.rich('unauthorised_desc', { br: () => <br /> })}
</p>
<div className='flex gap-4 mt-6'>
<div className='mt-6 flex gap-4'>
<Button variant='outline' onClick={() => navigate(-1)}>
{t('go_back')}
</Button>
Expand Down

0 comments on commit 456b327

Please sign in to comment.