Skip to content

Commit 5cf25ff

Browse files
author
Jacob Logan
committed
remove extra space and add legend header
1 parent ac7bbea commit 5cf25ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/ApiDocs/ReferencePage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { FunctionReference } from './FunctionReference';
44
import { Divider, View, Flex } from '@aws-amplify/ui-react';
55
import { API_CATEGORIES, API_SUB_CATEGORIES } from '@/data/api-categories.mjs';
66
import references from '@/directory/apiReferences.json';
7+
import { MDXHeading } from '../MDXComponents';
78

89
export const ReferencePage = ({ category }) => {
910
category = API_CATEGORIES[category] || API_SUB_CATEGORIES[category];
@@ -18,6 +19,8 @@ export const ReferencePage = ({ category }) => {
1819
<FunctionReference func={child} />
1920
</Fragment>
2021
))}
22+
<Divider marginTop={'large'} marginBottom={'large'} />
23+
<MDXHeading level={4}>Link Color Legend</MDXHeading>
2124
<Flex className="api-legend-container">
2225
<Flex>
2326
<View as="span" className="api-legend interface" />

src/components/ApiDocs/display/ParameterType.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const ParameterType = ({ typeData }: ParameterComponentType) => {
7070
case 'reference':
7171
return (
7272
<>
73-
<ReferenceType data={typeData} />{' '}
73+
<ReferenceType data={typeData} />
7474
{typeArgs && <>{addTypeArgs(typeArgs, [])}</>}
7575
</>
7676
);

0 commit comments

Comments
 (0)