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') && (
|
{appHost.supports('clientsettings') && (
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href='#' // Required for focus in TV layout
|
|
||||||
onClick={shell.openClientSettings}
|
onClick={shell.openClientSettings}
|
||||||
className='clientSettings listItem-border'
|
className='clientSettings listItem-border'
|
||||||
style={{
|
style={{
|
||||||
|
@ -288,7 +287,6 @@ const UserSettingsPage: FC = () => {
|
||||||
|
|
||||||
{appHost.supports('multiserver') && (
|
{appHost.supports('multiserver') && (
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href='#' // Required for focus in TV layout
|
|
||||||
onClick={Dashboard.selectServer}
|
onClick={Dashboard.selectServer}
|
||||||
className='selectServer listItem-border'
|
className='selectServer listItem-border'
|
||||||
style={{
|
style={{
|
||||||
|
@ -309,7 +307,6 @@ const UserSettingsPage: FC = () => {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href='#' // Required for focus in TV layout
|
|
||||||
onClick={Dashboard.logout}
|
onClick={Dashboard.logout}
|
||||||
className='btnLogout listItem-border'
|
className='btnLogout listItem-border'
|
||||||
style={{
|
style={{
|
||||||
|
@ -330,7 +327,6 @@ const UserSettingsPage: FC = () => {
|
||||||
|
|
||||||
{appHost.supports('exitmenu') && (
|
{appHost.supports('exitmenu') && (
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href='#' // Required for focus in TV layout
|
|
||||||
onClick={appHost.exit}
|
onClick={appHost.exit}
|
||||||
className='exitApp listItem-border'
|
className='exitApp listItem-border'
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -18,7 +18,7 @@ interface LinkButtonProps extends DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnc
|
||||||
const LinkButton: React.FC<LinkButtonProps> = ({
|
const LinkButton: React.FC<LinkButtonProps> = ({
|
||||||
className,
|
className,
|
||||||
isAutoHideEnabled,
|
isAutoHideEnabled,
|
||||||
href,
|
href = '#', // The href must have a value to be focusable in the TV layout
|
||||||
target,
|
target,
|
||||||
onClick,
|
onClick,
|
||||||
children,
|
children,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue