Remove dynamic imports

This commit is contained in:
Gregory Schier
2025-05-15 12:29:45 -07:00
parent b52bf7cd56
commit 3184c1b79e
5 changed files with 77 additions and 81 deletions

View File

@@ -4,7 +4,7 @@ import type { GenericCompletionOption } from '@yaakapp-internal/plugins';
import classNames from 'classnames';
import { atom, useAtomValue } from 'jotai';
import type { CSSProperties } from 'react';
import React, { lazy, useCallback, useMemo, useState } from 'react';
import React, { useCallback, useMemo, useState } from 'react';
import { activeRequestIdAtom } from '../hooks/useActiveRequestId';
import { useCancelHttpResponse } from '../hooks/useCancelHttpResponse';
import { useHttpAuthenticationSummaries } from '../hooks/useHttpAuthentication';
@@ -46,15 +46,10 @@ import { FormMultipartEditor } from './FormMultipartEditor';
import { FormUrlencodedEditor } from './FormUrlencodedEditor';
import { HeadersEditor } from './HeadersEditor';
import { HttpAuthenticationEditor } from './HttpAuthenticationEditor';
import { MarkdownEditor } from './MarkdownEditor';
import { UrlBar } from './UrlBar';
import { UrlParametersEditor } from './UrlParameterEditor';
const GraphQLEditor = lazy(() =>
import('./GraphQLEditor').then((m) => ({ default: m.GraphQLEditor })),
);
const MarkdownEditor = lazy(() =>
import('./MarkdownEditor').then((m) => ({ default: m.MarkdownEditor })),
);
import { GraphQLEditor } from './GraphQLEditor';
interface Props {
style: CSSProperties;