Skip to content

Commit

Permalink
refactor: 🛠️ tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Dec 2, 2024
1 parent ecffc30 commit 4c8895f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/cookbook/docs/nx/02-transitioning/01-set-up-nx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: Learn how to set up Nx.

If you are fortunate enough to start a new project from scratch, then you can simply generate a new Nx workspace using the following command:

import NpmCommand from '@site/src/components/npm-command';
import { NpmCommand } from '@site/src/components/npm-command';

<NpmCommand args="create nx-workspace@latest <name> --preset <preset>" />

Expand Down
2 changes: 1 addition & 1 deletion apps/cookbook/src/components/npm-command.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render } from '@testing-library/react';
import React from 'react';
import { expect, test } from 'vitest';
import NpmCommand from './npm-command';
import { NpmCommand } from './npm-command';
import { getProps } from '../testing/utils';

test('should render bun, pnpm, npm, and yarn commands', () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/cookbook/src/components/npm-command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

export default function NpmCommand({ args }: { args: string | ArgsRecord }) {
export function NpmCommand({ args }: { args: string | ArgsRecord }) {
const argsRecord: ArgsRecord =
typeof args === 'string'
? {
Expand Down

0 comments on commit 4c8895f

Please sign in to comment.