Skip to content

Commit c7ee212

Browse files
author
Dylan Huang
committed
fix error
1 parent 01cc196 commit c7ee212

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

vite-app/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useEffect, useState } from "react";
22
import { Link } from "react-router-dom";
3-
import "./index.css";
43

54
interface FileUpdate {
65
type: "file_changed" | "file_created" | "file_deleted";

vite-app/src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react";
22
import ReactDOM from "react-dom/client";
33
import { BrowserRouter } from "react-router-dom";
44
import App from "./App";
5+
import "./index.css";
56

67
ReactDOM.createRoot(document.getElementById("root")!).render(
78
<React.StrictMode>

vite-app/src/typings.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module '*.css' {
2+
const content: Record<string, string>;
3+
export default content;
4+
}

0 commit comments

Comments
 (0)