Skip to content

Commit

Permalink
Revert "align example with docs"
Browse files Browse the repository at this point in the history
This reverts commit c22a6b0.
  • Loading branch information
brillout committed Apr 8, 2024
1 parent f74ea5f commit 63487b2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/basic/layouts/HeadDefault.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export { Head }
export default HeadDefault

import React from 'react'
import logoUrl from '../assets/logo.svg'

function Head() {
function HeadDefault() {
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down
4 changes: 2 additions & 2 deletions examples/basic/layouts/LayoutDefault.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export { Layout }
export default LayoutDefault

import './style.css'
import React from 'react'
import logoUrl from '../assets/logo.svg'
import { Link } from '../components/Link'

function Layout({ children }: { children: React.ReactNode }) {
function LayoutDefault({ children }: { children: React.ReactNode }) {
return (
<div
style={{
Expand Down
1 change: 0 additions & 1 deletion examples/basic/pages/+Head.ts

This file was deleted.

1 change: 0 additions & 1 deletion examples/basic/pages/+Layout.ts

This file was deleted.

4 changes: 4 additions & 0 deletions examples/basic/pages/+config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
export { config }

import type { Config } from 'vike/types'
import Layout from '../layouts/LayoutDefault'
import Head from '../layouts/HeadDefault'
import vikeReact from 'vike-react/config'

// Default configs (can be overridden by pages)
const config = {
Layout,
Head,
// <title>
title: 'My Vike + React App',
extends: vikeReact
Expand Down

0 comments on commit 63487b2

Please sign in to comment.