mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49: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
|
@ -12,11 +12,14 @@ export function useHeaderContext() {
|
|||
throw new Error('Should be nested inside a HeaderContainer component');
|
||||
}
|
||||
}
|
||||
interface Props {
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export function HeaderContainer({ children }: PropsWithChildren<unknown>) {
|
||||
export function HeaderContainer({ id, children }: PropsWithChildren<Props>) {
|
||||
return (
|
||||
<Context.Provider value>
|
||||
<div className={clsx('row', styles.header)}>
|
||||
<div id={id} className={clsx('row', styles.header)}>
|
||||
<div id="loadingbar-placeholder" />
|
||||
<div className="col-xs-12">
|
||||
<div className={styles.meta}>{children}</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue