mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user