Skip to content

Commit 58998c2

Browse files
authored
Merge pull request #50 from buildo/fixes-2
Default to single-line for ListItem
2 parents a907b59 + 65db8e7 commit 58998c2

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)