Skip to content

Commit

Permalink
expandable parameters?
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Feb 6, 2025
1 parent e39a74f commit 7a5b58a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/sdkApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {refractor} from 'refractor/lib/core.js';

import {PlatformCategory} from 'sentry-docs/types';

import {Expandable} from './expandable';
import {SdkDefinition, SdkDefinitionTable} from './sdkDefinition';

interface ParameterDef {
Expand Down Expand Up @@ -48,13 +49,13 @@ export function SdkApi({
<pre className="mt-2 mb-2">{codeToJsx(signature, language)}</pre>

{parameters.length ? (
<Fragment>
<SdkDefinitionTable>
<Expandable title='Parameters'>
<SdkDefinitionTable className='bg-white'>
{parameters.map(param => (
<ApiParameterDef key={param.name} {...param} />
))}
</SdkDefinitionTable>
</Fragment>
</Expandable>
) : null}

{children}
Expand Down

0 comments on commit 7a5b58a

Please sign in to comment.