Skip to content

Commit

Permalink
move import order
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Feb 15, 2024
1 parent 0944e27 commit 9d1607b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 jsonPageContent from './${kebabCase(reactApi.name)}.json';
${
layoutConfigPath === ''
? ''
: ` import layoutConfig from '${layoutConfigPath}';
`
}
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';${
layoutConfigPath === ''
? ''
: `
import layoutConfig from '${layoutConfigPath}';`
}
import jsonPageContent from './${kebabCase(reactApi.name)}.json';*
export default function Page(props) {
const { descriptions, pageContent } = props;
return <ApiPage ${layoutConfigPath === '' ? '' : '{...layoutConfig} '}descriptions={descriptions} pageContent={pageContent} />;
Expand Down

0 comments on commit 9d1607b

Please sign in to comment.