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 aa46984
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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 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 <ApiPage ${layoutConfigPath === '' ? '' : '{...layoutConfig} '}descriptions={descriptions} pageContent={pageContent} />;
Expand Down

0 comments on commit aa46984

Please sign in to comment.