add trpc example to development build, ensure syntax highlighting works

Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
This commit is contained in:
Oleg S
2023-02-01 15:54:12 -05:00
parent 60a466094c
commit e4a78a13da
2 changed files with 2 additions and 1 deletions
@@ -6,6 +6,7 @@ metadata:
spec:
targets:
- ./apis/hello-world-api.yaml
- ./apis/hello-world-trpc-api.yaml
- ./apis/petstore-api.yaml
- ./apis/spotify-api.yaml
- ./apis/streetlights-api.yaml
@@ -33,7 +33,7 @@ export const TrpcApiDefinitionWidget: React.FC<TrpcApiDefinitionWidgetProps> = (
<CodeSnippet
customStyle={{ backgroundColor: theme.palette.background.default }}
text={definition}
language="ts"
language="typescript"
showCopyCodeButton
/>
);