Skip to content

Commit

Permalink
fix: updated config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwine36 committed Sep 17, 2024
1 parent 71c9268 commit a5c1067
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
6 changes: 2 additions & 4 deletions apps/sample-nextjs/app/draw/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const DrawingApp = dynamic(
},
);

export const Draw = () => {
export default async function Draw() {
return (
<div className={styles.layout}>
<div className={styles.wrapper}>
Expand All @@ -18,6 +18,4 @@ export const Draw = () => {
</div>
</div>
);
};

export default Draw;
}
8 changes: 3 additions & 5 deletions apps/sample-nextjs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ export const metadata: Metadata = {
description: 'Generated by create next app',
};

export const RootLayout = ({
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) => {
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
};

export default RootLayout;
}
6 changes: 2 additions & 4 deletions apps/sample-nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const OptionGrid = dynamic(
},
);

export const Home = () => {
export default async function Home() {
// const data = await getFibonacci(12);
// const serverData = await fetch('http://localhost:3001/api').then((res) => res.json());

Expand All @@ -28,6 +28,4 @@ export const Home = () => {
</main>
</Providers>
);
};

export default Home;
}
10 changes: 9 additions & 1 deletion crates/wasm-draw/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@ type: "library"

tags: ['rust-wasm']

# Add command `trunk serve --open`
# Add command `trunk serve --open`

tasks:
test:
command: 'nextest run'
deps: []
options:
mergeDeps: replace
mergeArgs: replace
2 changes: 1 addition & 1 deletion packages/eslint-config/react-internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ module.exports = {
'jsx-a11y/iframe-has-title': 'off',

'react/react-in-jsx-scope': 'off',
'react/function-component-definition': ['error', { namedComponents: 'arrow-function' }],
'react/function-component-definition': 'off',
},
};

0 comments on commit a5c1067

Please sign in to comment.