Skip to content

Commit ab3451f

Browse files
[getsentry/action-github-commit] Auto commit
1 parent fa92c90 commit ab3451f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/components/nestedObject.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {MinusCircledIcon, PlusCircledIcon} from '@radix-ui/react-icons';
66
import {codeToJsx} from './highlightCode';
77
import {ParameterDef} from './sdkApi';
88

9-
109
export function RenderNestedObject({
1110
name,
1211
objProps,
@@ -52,7 +51,10 @@ export function RenderNestedObject({
5251
<div>
5352
{typeof prop.type === 'string' ? (
5453
<Fragment>
55-
<code>{prop.name}{!prop.required ? '?' : ''}: </code>
54+
<code>
55+
{prop.name}
56+
{!prop.required ? '?' : ''}:{' '}
57+
</code>
5658
<code>{codeToJsx(prop.type, 'typescript')},</code>
5759
</Fragment>
5860
) : (

src/components/sdkApi.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export function SdkApi({
4747
return (
4848
<SdkDefinition name={name} categorySupported={categorySupported}>
4949
{showBrowserOnly && <div className="italic text-sm">Only available on Client</div>}
50-
{showServerLikeOnly && <div className="italic text-sm">Only available on Server</div>}
50+
{showServerLikeOnly && (
51+
<div className="italic text-sm">Only available on Server</div>
52+
)}
5153

5254
<pre className="mt-2 mb-2 text-sm">{codeToJsx(signature, lang)}</pre>
5355

0 commit comments

Comments
 (0)