mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
feat(website): color scheme / dark and light mode improvements
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import type { ApiFunction } from '@microsoft/api-extractor-model';
|
||||
import { OverloadSwitcher } from '../../OverloadSwitcher';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { FunctionBody } from './FunctionBody';
|
||||
import { Header } from '~/components/documentation/Header';
|
||||
|
||||
const OverloadSwitcher = dynamic(async () => import('../../OverloadSwitcher'));
|
||||
|
||||
export function Function({ item }: { item: ApiFunction }) {
|
||||
const header = <Header kind={item.kind} name={item.name} />;
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
ApiMethod,
|
||||
ApiMethodSignature,
|
||||
} from '@microsoft/api-extractor-model';
|
||||
import { OverloadSwitcher } from '../../OverloadSwitcher';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { MethodDocumentation } from './MethodDocumentation';
|
||||
import { MethodHeader } from './MethodHeader';
|
||||
|
||||
const OverloadSwitcher = dynamic(async () => import('../../OverloadSwitcher'));
|
||||
|
||||
export function Method({
|
||||
method,
|
||||
inheritedFrom,
|
||||
|
||||
Reference in New Issue
Block a user