Skip to content

Commit

Permalink
Fix(examples): Add mandatory elementType to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Nov 21, 2024
1 parent 50ed531 commit e6acc7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/next-with-app-router/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Heading } from '@lmc-eu/spirit-web-react';
import { NextPage } from 'next';

const Home: NextPage = () => <Heading size="large">Spirit App Router</Heading>;
const Home: NextPage = () => (
<Heading elementType="h2" size="large">
Spirit App Router
</Heading>
);

export default Home;
6 changes: 5 additions & 1 deletion examples/next-with-pages-router/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Heading } from '@lmc-eu/spirit-web-react';
import { NextPage } from 'next';

const Home: NextPage = () => <Heading size="large">Spirit Pages App</Heading>;
const Home: NextPage = () => (
<Heading elementType="h2" size="large">
Spirit Pages App
</Heading>
);

export default Home;

0 comments on commit e6acc7f

Please sign in to comment.