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

Commit ffd7776

Browse files
author
Matt Goo
authored
fix(list): make listitem props optional (#766)
1 parent b9b468d commit ffd7776

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

packages/list/ListItem.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ import * as React from 'react';
2424
import classnames from 'classnames';
2525

2626
export interface ListItemProps<T> extends React.HTMLProps<T> {
27-
className: string;
28-
classNamesFromList: string[];
29-
attributesFromList: object;
30-
childrenTabIndex: number;
31-
tabIndex: number;
32-
shouldFocus: boolean;
33-
shouldFollowHref: boolean;
34-
shouldToggleCheckbox: boolean;
35-
tag: string;
36-
children: React.ReactNode;
27+
className?: string;
28+
classNamesFromList?: string[];
29+
attributesFromList?: object;
30+
childrenTabIndex?: number;
31+
tabIndex?: number;
32+
shouldFocus?: boolean;
33+
shouldFollowHref?: boolean;
34+
shouldToggleCheckbox?: boolean;
35+
tag?: string;
36+
children?: React.ReactNode;
3737
};
3838

3939
function isAnchorElement(element: any): element is HTMLAnchorElement {

packages/ripple/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface RippledComponentState {
5151

5252
// props to be injected by this HOC.
5353
export interface InjectedProps<S, A = Element> extends RippledComponentProps<S> {
54-
initRipple: React.Ref<S> | ((surface: S | null, activator?: A | null) => void);
54+
initRipple?: React.Ref<S> | ((surface: S | null, activator?: A | null) => void);
5555
}
5656

5757
type ActivateEventTypes<S>

0 commit comments

Comments
 (0)