Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/f9cb4c1abd40ccd6e0e1ecc3edd2b4f595a3284d
You should set ROOT_URL correctly, otherwise the web may not work correctly.
8 changed files with
20 additions and
13 deletions
@ -210,9 +210,11 @@ class FilterBuilderRow extends Component {
const selectedFilterBuilderProp = this . selectedFilterBuilderProp ;
const keyOptions = filterBuilderProps . map ( ( availablePropFilter ) => {
const { name , label } = availablePropFilter ;
return {
key : availablePropFilter . name ,
value : availablePropFilter . label
key : name,
value : typeof label === 'function' ? label ( ) : label
} ;
} ) . sort ( ( a , b ) => a . value . localeCompare ( b . value ) ) ;
@ -61,7 +61,7 @@ class SelectInput extends Component {
value = { key }
{ ... otherOptionProps }
>
{ optionValue }
{ typeof optionValue === 'function' ? optionValue ( ) : optionValue }
< / o p t i o n >
) ;
} )
@ -75,7 +75,7 @@ SelectInput.propTypes = {
className : PropTypes . string ,
disabledClassName : PropTypes . string ,
name : PropTypes . string . isRequired ,
value : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ]) . isRequired ,
value : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number , PropTypes . func ]) . isRequired ,
values : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
isDisabled : PropTypes . bool ,
hasError : PropTypes . bool ,
@ -33,7 +33,7 @@ class FilterMenuContent extends Component {
selectedFilterKey = { selectedFilterKey }
onPress = { onFilterSelect }
>
{ filter . label }
{ typeof filter . label === 'function' ? filter . label ( ) : filter . label }
< / F i l t e r M e n u I t e m >
) ;
} )
@ -1,8 +1,10 @@
import React from 'react' ;
type PropertyFunction < T > = ( ) = > T ;
interface Column {
name : string ;
label : string | React. ReactNode ;
label : string | PropertyFunction< string > | React. ReactNode ;
columnLabel? : string ;
isSortable? : boolean ;
isVisible : boolean ;
@ -107,7 +107,7 @@ function Table(props) {
{ ... getTableHeaderCellProps ( otherProps ) }
{ ... column }
>
{ column . label }
{ typeof column . label === 'function' ? column . label ( ) : column . label }
< / T a b l e H e a d e r C e l l >
) ;
} )
@ -30,6 +30,7 @@ class TableHeaderCell extends Component {
const {
className ,
name ,
label ,
columnLabel ,
isSortable ,
isVisible ,
@ -53,7 +54,8 @@ class TableHeaderCell extends Component {
{ ... otherProps }
component = "th"
className = { className }
title = { columnLabel }
label = { typeof label === 'function' ? label ( ) : label }
title = { typeof columnLabel === 'function' ? columnLabel ( ) : columnLabel }
onPress = { this . onPress }
>
{ children }
@ -77,7 +79,8 @@ class TableHeaderCell extends Component {
TableHeaderCell . propTypes = {
className : PropTypes . string ,
name : PropTypes . string . isRequired ,
columnLabel : PropTypes . string ,
label : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . func , PropTypes . node ] ) ,
columnLabel : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . func ] ) ,
isSortable : PropTypes . bool ,
isVisible : PropTypes . bool ,
isModifiable : PropTypes . bool ,
@ -35,7 +35,7 @@ function TableOptionsColumn(props) {
isDisabled = { isModifiable === false }
onChange = { onVisibleChange }
/ >
{ label }
{ typeof label === 'function' ? label ( ) : label }
< / l a b e l >
{
@ -56,7 +56,7 @@ function TableOptionsColumn(props) {
TableOptionsColumn . propTypes = {
name : PropTypes . string . isRequired ,
label : PropTypes . string. isRequired ,
label : PropTypes . oneOfType( [ PropTypes . string, PropTypes . func ] ) . isRequired ,
isVisible : PropTypes . bool . isRequired ,
isModifiable : PropTypes . bool . isRequired ,
index : PropTypes . number . isRequired ,
@ -112,7 +112,7 @@ class TableOptionsColumnDragSource extends Component {
< TableOptionsColumn
name = { name }
label = { label }
label = { typeof label === 'function' ? label ( ) : label }
isVisible = { isVisible }
isModifiable = { isModifiable }
index = { index }
@ -138,7 +138,7 @@ class TableOptionsColumnDragSource extends Component {
TableOptionsColumnDragSource . propTypes = {
name : PropTypes . string . isRequired ,
label : PropTypes . string. isRequired ,
label : PropTypes . oneOfType( [ PropTypes . string, PropTypes . func ] ) . isRequired ,
isVisible : PropTypes . bool . isRequired ,
isModifiable : PropTypes . bool . isRequired ,
index : PropTypes . number . isRequired ,