Skip to content

Commit 65db8e7

Browse files
committed
Default to single-line for ListItem
1 parent a907b59 commit 65db8e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/List/createListItem.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Kind =
1414
label: LocalizedString;
1515
}
1616
| {
17-
kind: "single-line";
17+
kind?: "single-line";
1818
label: LocalizedString;
1919
}
2020
| {
@@ -172,7 +172,8 @@ export function createListItem(config: ListItemConfig) {
172172
function renderContent(props: Props) {
173173
switch (props.kind) {
174174
case "single-line":
175-
return <SingleLine {...props} />;
175+
case undefined:
176+
return <SingleLine kind="single-line" {...props} />;
176177
case "two-line":
177178
return <TwoLine {...props} />;
178179
case "overline":

0 commit comments

Comments
 (0)