From aa46984694d4d799eb032ad96d7a58c5b70f4acf Mon Sep 17 00:00:00 2001 From: alexandre Date: Thu, 15 Feb 2024 09:53:00 +0100 Subject: [PATCH] move import order --- .../ApiBuilders/ComponentApiBuilder.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts b/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts index b3ba1c0006f5da..ebe0d2e8374a07 100644 --- a/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts +++ b/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts @@ -423,14 +423,14 @@ const generateApiPage = async ( path.resolve(apiPagesDirectory, `${kebabCase(reactApi.name)}.js`), `import * as React from 'react'; import ApiPage from 'docs/src/modules/components/ApiPage'; - import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; + import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';${ + layoutConfigPath === '' + ? '' + : ` + import layoutConfig from '${layoutConfigPath}';` + } import jsonPageContent from './${kebabCase(reactApi.name)}.json'; -${ - layoutConfigPath === '' - ? '' - : ` import layoutConfig from '${layoutConfigPath}'; -` -} + export default function Page(props) { const { descriptions, pageContent } = props; return ;