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:
parent
f5289c1386
commit
00f16b04ab
2 changed files with 1 additions and 5 deletions
|
@ -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={{
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue