mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add default isBtnVisible to false
This commit is contained in:
parent
0a881d6f6f
commit
9ca943fcca
6 changed files with 1 additions and 6 deletions
|
@ -8,7 +8,7 @@ type IProps = {
|
||||||
titleLink?: string;
|
titleLink?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SectionTitleContainer: FunctionComponent<IProps> = ({title, isBtnVisible, titleLink}: IProps) => {
|
const SectionTitleContainer: FunctionComponent<IProps> = ({title, isBtnVisible = false, titleLink}: IProps) => {
|
||||||
return (
|
return (
|
||||||
<div className='verticalSection'>
|
<div className='verticalSection'>
|
||||||
<div className='sectionTitleContainer flex align-items-center'>
|
<div className='sectionTitleContainer flex align-items-center'>
|
||||||
|
|
|
@ -179,7 +179,6 @@ const NewUserPage: FunctionComponent = () => {
|
||||||
<div className='content-primary'>
|
<div className='content-primary'>
|
||||||
<SectionTitleContainer
|
<SectionTitleContainer
|
||||||
title={globalize.translate('HeaderAddUser')}
|
title={globalize.translate('HeaderAddUser')}
|
||||||
isBtnVisible={false}
|
|
||||||
titleLink='https://docs.jellyfin.org/general/server/users/'
|
titleLink='https://docs.jellyfin.org/general/server/users/'
|
||||||
/>
|
/>
|
||||||
<form className='newUserProfileForm'>
|
<form className='newUserProfileForm'>
|
||||||
|
|
|
@ -280,7 +280,6 @@ const UserEditPage: FunctionComponent = () => {
|
||||||
<div className='content-primary'>
|
<div className='content-primary'>
|
||||||
<SectionTitleContainer
|
<SectionTitleContainer
|
||||||
title={userName}
|
title={userName}
|
||||||
isBtnVisible={false}
|
|
||||||
titleLink='https://docs.jellyfin.org/general/server/users/'
|
titleLink='https://docs.jellyfin.org/general/server/users/'
|
||||||
/>
|
/>
|
||||||
<SectionTabs activeTab='useredit'/>
|
<SectionTabs activeTab='useredit'/>
|
||||||
|
|
|
@ -230,7 +230,6 @@ const UserLibraryAccessPage: FunctionComponent = () => {
|
||||||
<div className='content-primary'>
|
<div className='content-primary'>
|
||||||
<SectionTitleContainer
|
<SectionTitleContainer
|
||||||
title={userName}
|
title={userName}
|
||||||
isBtnVisible={false}
|
|
||||||
titleLink='https://docs.jellyfin.org/general/server/users/'
|
titleLink='https://docs.jellyfin.org/general/server/users/'
|
||||||
/>
|
/>
|
||||||
<SectionTabs activeTab='userlibraryaccess'/>
|
<SectionTabs activeTab='userlibraryaccess'/>
|
||||||
|
|
|
@ -321,7 +321,6 @@ const UserParentalControl: FunctionComponent = () => {
|
||||||
<div className='content-primary'>
|
<div className='content-primary'>
|
||||||
<SectionTitleContainer
|
<SectionTitleContainer
|
||||||
title={userName}
|
title={userName}
|
||||||
isBtnVisible={false}
|
|
||||||
titleLink='https://docs.jellyfin.org/general/server/users/'
|
titleLink='https://docs.jellyfin.org/general/server/users/'
|
||||||
/>
|
/>
|
||||||
<SectionTabs activeTab='userparentalcontrol'/>
|
<SectionTabs activeTab='userparentalcontrol'/>
|
||||||
|
|
|
@ -25,7 +25,6 @@ const UserPasswordPage: FunctionComponent = () => {
|
||||||
<div className='content-primary'>
|
<div className='content-primary'>
|
||||||
<SectionTitleContainer
|
<SectionTitleContainer
|
||||||
title={userName}
|
title={userName}
|
||||||
isBtnVisible={false}
|
|
||||||
titleLink='https://docs.jellyfin.org/general/server/users/'
|
titleLink='https://docs.jellyfin.org/general/server/users/'
|
||||||
/>
|
/>
|
||||||
<SectionTabs activeTab='userpassword'/>
|
<SectionTabs activeTab='userpassword'/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue