Skip to content

Commit a96e4d1

Browse files
committed
fix lint issues
1 parent a3a9f54 commit a96e4d1

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

app/components/ui/button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ function Button({
4141
size,
4242
asChild = false,
4343
...props
44-
}: React.ComponentProps<'button'> &
45-
VariantProps<typeof buttonVariants> & {
44+
}: React.ComponentProps<'button'>
45+
& VariantProps<typeof buttonVariants> & {
4646
asChild?: boolean
4747
}) {
4848
const Comp = asChild ? Slot : 'button'

app/components/ui/status-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Button } from './button'
77
import { Icon } from './icon'
88
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip'
99

10-
export function StatusButton({ ref, message, status, className, children, spinDelay, ...props }: React.ComponentProps<'button'> &
11-
VariantProps<typeof buttonVariants> & {
10+
export function StatusButton({ ref, message, status, className, children, spinDelay, ...props }: React.ComponentProps<'button'>
11+
& VariantProps<typeof buttonVariants> & {
1212
asChild?: boolean
1313
} & {
1414
status: 'pending' | 'success' | 'error' | 'idle'

app/utils/permissions.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { requireUser, requireUserInOrganization } from './auth/auth.server'
55
type Action = 'create' | 'read' | 'update' | 'delete'
66
type Entity = 'user' | 'organization'
77
type Access = 'own' | 'any' | 'own,any' | 'any,own'
8-
export type PermissionString =
9-
| `${Action}:${Entity}`
10-
| `${Action}:${Entity}:${Access}`
8+
export type PermissionString
9+
= | `${Action}:${Entity}`
10+
| `${Action}:${Entity}:${Access}`
1111

1212
export function parsePermissionString(permissionString: PermissionString) {
1313
const [action, entity, access] = permissionString.split(':') as [

0 commit comments

Comments
 (0)