Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit 1585c95

Browse files
author
Matt Goo
committed
fix(top-app-bar): make top app bar props optional (#587)
1 parent 3aaf871 commit 1585c95

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

packages/top-app-bar/index.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ export type MDCTopAppBarFoundationTypes
3535

3636
export interface TopAppBarProps {
3737
actionItems?: React.ReactElement<any>[];
38-
className: string;
39-
dense: boolean;
40-
fixed: boolean;
38+
className?: string;
39+
dense?: boolean;
40+
fixed?: boolean;
4141
navigationIcon?: React.ReactElement<any>;
42-
prominent: boolean;
43-
short: boolean;
44-
shortCollapsed: boolean;
45-
style: React.CSSProperties;
46-
title: React.ReactNode;
42+
prominent?: boolean;
43+
short?: boolean;
44+
shortCollapsed?: boolean;
45+
style?: React.CSSProperties;
46+
title?: React.ReactNode;
4747
}
4848

4949
interface TopAppBarState {
@@ -53,11 +53,7 @@ interface TopAppBarState {
5353

5454
type Props = TopAppBarProps & React.HTMLProps<HTMLElement>;
5555
export type VariantType = 'dense' | 'fixed' | 'prominent' | 'short' | 'shortCollapsed';
56-
// function isElement(element: any): element is React.ReactElement<any> {
57-
// return typeof element !== 'string' ||
58-
// typeof element !== 'number' ||
59-
// typeof element !== 'boolean';
60-
// }
56+
6157
export default class TopAppBar extends React.Component<
6258
Props,
6359
TopAppBarState

0 commit comments

Comments
 (0)