Skip to content

Commit

Permalink
Remove unnecessary layout from vike setup
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Jun 27, 2024
1 parent 93a20b9 commit b396198
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions crates/depot/src/commands/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,24 +721,13 @@ export default defineConfig(({{ mode }}) => ({{
const CONFIG_SRC: &str = r#"import vikeReact from "vike-react/config";
import type { Config } from "vike/types";
import { Layout } from "./Layout";
export let config: Config = {
Layout,
extends: vikeReact,
lang: "en-US"
};
"#;
files.push(("src/+config.ts".into(), CONFIG_SRC.into()));

const LAYOUT_SRC: &str = r#"import React from "react";
export let Layout: React.FC<React.PropsWithChildren> = ({ children }) => (
<div id="root">{children}</div>
);
"#;
files.push(("src/Layout.tsx".into(), LAYOUT_SRC.into()));

let head_src = format!(
r#"import React from "react";
import "./{css_path}";
Expand Down

0 comments on commit b396198

Please sign in to comment.