Adjust props to fit general conventions

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-07-19 12:23:05 +02:00
parent 69f4782680
commit f39ee49343
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1202,7 +1202,7 @@ export const Page: ({
children,
}: PropsWithChildren<Props_21>) => JSX.Element;
// Warning: (ae-forgotten-export) The symbol "ThemedHeaderProps" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "PageWithHeaderProps" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "PageWithHeader" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
@@ -1210,7 +1210,7 @@ export const PageWithHeader: ({
themeId,
children,
...props
}: PropsWithChildren<ThemedHeaderProps>) => JSX.Element;
}: PropsWithChildren<PageWithHeaderProps>) => JSX.Element;
// Warning: (ae-missing-release-tag) "Progress" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -19,7 +19,7 @@ import React, { PropsWithChildren, ComponentProps } from 'react';
import { Header } from '../Header';
import { Page } from './Page';
export type ThemedHeaderProps = ComponentProps<typeof Header> & {
type PageWithHeaderProps = ComponentProps<typeof Header> & {
themeId: string;
};
@@ -27,7 +27,7 @@ export const PageWithHeader = ({
themeId,
children,
...props
}: PropsWithChildren<ThemedHeaderProps>) => (
}: PropsWithChildren<PageWithHeaderProps>) => (
<Page themeId={themeId}>
<Header {...props} />
{children}