Skip to content

Commit

Permalink
fix(top-app-bar): make top app bar props optional (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo committed Jan 23, 2019
1 parent 3aaf871 commit 1585c95
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions packages/top-app-bar/index.tsx
Expand Up @@ -35,15 +35,15 @@ export type MDCTopAppBarFoundationTypes

export interface TopAppBarProps {
actionItems?: React.ReactElement<any>[];
className: string;
dense: boolean;
fixed: boolean;
className?: string;
dense?: boolean;
fixed?: boolean;
navigationIcon?: React.ReactElement<any>;
prominent: boolean;
short: boolean;
shortCollapsed: boolean;
style: React.CSSProperties;
title: React.ReactNode;
prominent?: boolean;
short?: boolean;
shortCollapsed?: boolean;
style?: React.CSSProperties;
title?: React.ReactNode;
}

interface TopAppBarState {
Expand All @@ -53,11 +53,7 @@ interface TopAppBarState {

type Props = TopAppBarProps & React.HTMLProps<HTMLElement>;
export type VariantType = 'dense' | 'fixed' | 'prominent' | 'short' | 'shortCollapsed';
// function isElement(element: any): element is React.ReactElement<any> {
// return typeof element !== 'string' ||
// typeof element !== 'number' ||
// typeof element !== 'boolean';
// }

export default class TopAppBar extends React.Component<
Props,
TopAppBarState
Expand Down

0 comments on commit 1585c95

Please sign in to comment.