fix invalid link to actor overview page

add new start-header link to actor overview
This commit is contained in:
lukas 2021-12-20 17:10:34 +01:00
parent 23d91973d7
commit 12dc8427aa
3 changed files with 9 additions and 2 deletions

View File

@ -19,7 +19,7 @@ describe('<App/>', function () {
it('are navlinks correct', function () { it('are navlinks correct', function () {
const wrapper = shallow(<App/>); const wrapper = shallow(<App/>);
wrapper.setState({password: false}); wrapper.setState({password: false});
expect(wrapper.find('.navitem')).toHaveLength(4); expect(wrapper.find('.navitem')).toHaveLength(5);
}); });
it('test render of password page', function () { it('test render of password page', function () {

View File

@ -88,6 +88,13 @@ class App extends React.Component<{}, state> {
Categories Categories
</NavLink> </NavLink>
<NavLink
className={[style.navitem, themeStyle.navitem].join(' ')}
to={'/media/actors'}
activeStyle={{opacity: '0.85'}}>
Actors
</NavLink>
{this.context.TVShowEnabled ? ( {this.context.TVShowEnabled ? (
<NavLink <NavLink
className={[style.navitem, themeStyle.navitem].join(' ')} className={[style.navitem, themeStyle.navitem].join(' ')}

View File

@ -37,7 +37,7 @@ export class ActorPage extends React.Component<Props, state> {
<> <>
<PageTitle title={this.state.actor.Name} subtitle={this.state.data ? this.state.data.length + ' videos' : null}> <PageTitle title={this.state.actor.Name} subtitle={this.state.data ? this.state.data.length + ' videos' : null}>
<span className={style.overviewbutton}> <span className={style.overviewbutton}>
<Link to='/actors'> <Link to='/media/actors'>
<Button onClick={(): void => {}} title='Go to Actor overview' /> <Button onClick={(): void => {}} title='Go to Actor overview' />
</Link> </Link>
</span> </span>