Merge pull request #415 from Discours/feature/auth-resend

minor hotifx form
This commit is contained in:
Tony 2024-02-17 17:08:01 +03:00 committed by GitHub
commit 4e49fb7165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,11 +17,11 @@ type Props = {
export const Link = (props: Props) => { export const Link = (props: Props) => {
const { page } = useRouter() const { page } = useRouter()
const isSelected = page().route === props.routeName const isSelected = page()?.route === props.routeName
return ( return (
<li <li
onClick={props.onClick} onClick={props.onClick}
classList={{ 'view-switcher__item--selected': page().route === props.routeName }} classList={{ 'view-switcher__item--selected': page()?.route === props.routeName }}
> >
<ConditionalWrapper <ConditionalWrapper
condition={!isSelected && Boolean(props.routeName)} condition={!isSelected && Boolean(props.routeName)}