Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 4, 2024
1 parent 70f4450 commit 77ed321
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/router/src/Set.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ export function Set<WrapperProps>(props: SetProps<WrapperProps>) {
return <>{props.children}</>
}

type PrivateSetProps<P> = P & Omit<
SetProps<P>,
'private' | 'unauthenticated'
> & {
/** The page name where a user will be redirected when not authenticated */
unauthenticated: string
}
type PrivateSetProps<P> = P &
Omit<SetProps<P>, 'private' | 'unauthenticated'> & {
/** The page name where a user will be redirected when not authenticated */
unauthenticated: string
}

/** @deprecated Please use `<PrivateSet>` instead */
export function Private<WrapperProps>(props: PrivateSetProps<WrapperProps>) {
Expand Down

0 comments on commit 77ed321

Please sign in to comment.