From ac3346e79441ce9a657ca7d515111b07a9dab0b8 Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Mon, 8 Apr 2024 16:01:08 +0200 Subject: [PATCH] minor --- examples/basic/layouts/HeadDefault.tsx | 2 +- examples/basic/layouts/LayoutDefault.tsx | 2 +- examples/basic/pages/+config.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/basic/layouts/HeadDefault.tsx b/examples/basic/layouts/HeadDefault.tsx index ef374b88..85cdb33f 100644 --- a/examples/basic/layouts/HeadDefault.tsx +++ b/examples/basic/layouts/HeadDefault.tsx @@ -1,4 +1,4 @@ -export default HeadDefault +export { HeadDefault } import React from 'react' import logoUrl from '../assets/logo.svg' diff --git a/examples/basic/layouts/LayoutDefault.tsx b/examples/basic/layouts/LayoutDefault.tsx index e380953f..90efefba 100644 --- a/examples/basic/layouts/LayoutDefault.tsx +++ b/examples/basic/layouts/LayoutDefault.tsx @@ -1,4 +1,4 @@ -export default LayoutDefault +export { LayoutDefault } import './style.css' import React from 'react' diff --git a/examples/basic/pages/+config.ts b/examples/basic/pages/+config.ts index c6c7016f..7f224b9a 100644 --- a/examples/basic/pages/+config.ts +++ b/examples/basic/pages/+config.ts @@ -1,14 +1,14 @@ export { config } import type { Config } from 'vike/types' -import Layout from '../layouts/LayoutDefault' -import Head from '../layouts/HeadDefault' +import { LayoutDefault } from '../layouts/LayoutDefault' +import { HeadDefault } from '../layouts/HeadDefault' import vikeReact from 'vike-react/config' // Default configs (can be overridden by pages) const config = { - Layout, - Head, + Layout: LayoutDefault, + Head: HeadDefault, // title: 'My Vike + React App', extends: vikeReact