1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add default href value to LinkButton

This commit is contained in:
Bill Thornton 2025-03-28 12:52:52 -04:00
parent f5289c1386
commit 00f16b04ab
2 changed files with 1 additions and 5 deletions

View file

@ -182,7 +182,6 @@ const UserSettingsPage: FC = () => {
{appHost.supports('clientsettings') && (
<LinkButton
href='#' // Required for focus in TV layout
onClick={shell.openClientSettings}
className='clientSettings listItem-border'
style={{
@ -288,7 +287,6 @@ const UserSettingsPage: FC = () => {
{appHost.supports('multiserver') && (
<LinkButton
href='#' // Required for focus in TV layout
onClick={Dashboard.selectServer}
className='selectServer listItem-border'
style={{
@ -309,7 +307,6 @@ const UserSettingsPage: FC = () => {
)}
<LinkButton
href='#' // Required for focus in TV layout
onClick={Dashboard.logout}
className='btnLogout listItem-border'
style={{
@ -330,7 +327,6 @@ const UserSettingsPage: FC = () => {
{appHost.supports('exitmenu') && (
<LinkButton
href='#' // Required for focus in TV layout
onClick={appHost.exit}
className='exitApp listItem-border'
style={{

View file

@ -18,7 +18,7 @@ interface LinkButtonProps extends DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnc
const LinkButton: React.FC<LinkButtonProps> = ({
className,
isAutoHideEnabled,
href,
href = '#', // The href must have a value to be focusable in the TV layout
target,
onClick,
children,