feat(website): add icons for sections (#8377)

* feat(website): add icons for sections

* chore: make requested changes

* fix: add icon for function parameters
This commit is contained in:
Suneet Tipirneni
2022-07-28 10:26:06 -04:00
committed by GitHub
parent c25e8ad78b
commit ec43c184fe
5 changed files with 70 additions and 70 deletions

View File

@@ -1,3 +1,4 @@
import { VscSymbolConstant, VscSymbolMethod, VscSymbolProperty } from 'react-icons/vsc';
import { MethodList } from './MethodList';
import { ParameterTable } from './ParameterTable';
import { PropertyList } from './PropertyList';
@@ -11,7 +12,7 @@ export interface PropertiesSectionProps {
export function PropertiesSection({ data }: PropertiesSectionProps) {
return data.length ? (
<Section title="Properties" className="dark:text-white">
<Section iconElement={<VscSymbolProperty />} title="Properties" className="dark:text-white">
<PropertyList data={data} />
</Section>
) : null;
@@ -23,7 +24,7 @@ export interface MethodsSectionProps {
export function MethodsSection({ data }: MethodsSectionProps) {
return data.length ? (
<Section title="Methods" className="dark:text-white">
<Section iconElement={<VscSymbolMethod />} title="Methods" className="dark:text-white">
<MethodList data={data} />
</Section>
) : null;
@@ -35,7 +36,7 @@ export interface ParametersSectionProps {
export function ParametersSection({ data }: ParametersSectionProps) {
return data.length ? (
<Section title="Parameters" className="dark:text-white">
<Section iconElement={<VscSymbolConstant />} title="Parameters" className="dark:text-white">
<ParameterTable data={data} />
</Section>
) : null;