Skip to content

Commit 4104d0e

Browse files
authored
Backtrack (#777)
* Backtrack * Whoops
1 parent 970cd4d commit 4104d0e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/long-windows-hide.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'scoobie': patch
3+
---
4+
5+
CodeBlock: allow `language` and `label` to be undefined again, to support multi-snippet code blocks

src/components/CodeBlock.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ interface Props {
1313
children: readonly CodeChildProps[] | string;
1414
graphqlPlayground?: string;
1515
initialIndex?: number;
16-
label: string;
17-
language: string;
16+
label?: string;
17+
language?: string;
1818
trim?: boolean;
1919
lineNumbers?: boolean;
2020
}

0 commit comments

Comments
 (0)