mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(app-template): fixed the app template list not scroll to top issue (#7519)
* fix(app-template): fixed the app template list not scroll to top issue * fix(templates): added id prop to PageHeader component.
This commit is contained in:
parent
8cbff097e4
commit
c17baa36ef
4 changed files with 17 additions and 5 deletions
|
@ -10,6 +10,7 @@ import { HeaderTitle } from './HeaderTitle';
|
|||
import styles from './PageHeader.module.css';
|
||||
|
||||
interface Props {
|
||||
id?: string;
|
||||
reload?: boolean;
|
||||
loading?: boolean;
|
||||
onReload?(): Promise<void> | void;
|
||||
|
@ -18,6 +19,7 @@ interface Props {
|
|||
}
|
||||
|
||||
export function PageHeader({
|
||||
id,
|
||||
title,
|
||||
breadcrumbs = [],
|
||||
reload,
|
||||
|
@ -31,7 +33,7 @@ export function PageHeader({
|
|||
}
|
||||
|
||||
return (
|
||||
<HeaderContainer>
|
||||
<HeaderContainer id={id}>
|
||||
<Breadcrumbs breadcrumbs={breadcrumbs} />
|
||||
|
||||
<HeaderTitle title={title}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue