-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bae8c3
commit 8fea7f0
Showing
5 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'hostd': minor | ||
'renterd': minor | ||
'@siafoundation/design-system': minor | ||
--- | ||
|
||
Fixed an issue where number fields would not properly handle user input starting with a decimal separator. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
libs/react-core/src/useAppSettings/useIsAuthenticatedRoute.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
'use client' | ||
|
||
import { useRouter } from 'next/router' | ||
import { usePathname } from 'next/navigation' | ||
|
||
type UnauthenticatedRoutes = { | ||
login: string | ||
} | ||
|
||
export function useIsAuthenticatedRoute(routes: UnauthenticatedRoutes) { | ||
const router = useRouter() | ||
return ![routes.login].includes(router.asPath) | ||
const pathname = usePathname() | ||
return ![routes.login].includes(pathname) | ||
} |