From 4c1a91f58bcb7773e033feaef01f9ffeaf875d4a Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Fri, 8 Sep 2023 16:20:11 +0000 Subject: [PATCH] chore(site): update files to use a more standard naming --- site/index.html | 2 +- site/src/{app.tsx => App.tsx} | 0 site/src/components/Dashboard/Navbar/Navbar.test.tsx | 2 +- site/src/{Main.tsx => index.tsx} | 2 +- site/src/testHelpers/renderHelpers.tsx | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename site/src/{app.tsx => App.tsx} (100%) rename site/src/{Main.tsx => index.tsx} (98%) diff --git a/site/index.html b/site/index.html index 29cafbb453a46..c89c3b2aaf831 100644 --- a/site/index.html +++ b/site/index.html @@ -46,5 +46,5 @@
- + diff --git a/site/src/app.tsx b/site/src/App.tsx similarity index 100% rename from site/src/app.tsx rename to site/src/App.tsx diff --git a/site/src/components/Dashboard/Navbar/Navbar.test.tsx b/site/src/components/Dashboard/Navbar/Navbar.test.tsx index 0fc06e6168640..c9f9a0030122c 100644 --- a/site/src/components/Dashboard/Navbar/Navbar.test.tsx +++ b/site/src/components/Dashboard/Navbar/Navbar.test.tsx @@ -1,5 +1,5 @@ import { render, screen, waitFor } from "@testing-library/react"; -import { App } from "app"; +import { App } from "App"; import { Language } from "./NavbarView"; import { rest } from "msw"; import { diff --git a/site/src/Main.tsx b/site/src/index.tsx similarity index 98% rename from site/src/Main.tsx rename to site/src/index.tsx index a606c64bef9c0..f87ac0db60563 100644 --- a/site/src/Main.tsx +++ b/site/src/index.tsx @@ -1,7 +1,7 @@ import { inspect } from "@xstate/inspect"; import { createRoot } from "react-dom/client"; import { Interpreter } from "xstate"; -import { App } from "./app"; +import { App } from "./App"; import "./i18n"; // if this is a development build and the developer wants to inspect diff --git a/site/src/testHelpers/renderHelpers.tsx b/site/src/testHelpers/renderHelpers.tsx index 48596bf5fe385..e4a0f856532c9 100644 --- a/site/src/testHelpers/renderHelpers.tsx +++ b/site/src/testHelpers/renderHelpers.tsx @@ -3,7 +3,7 @@ import { screen, waitForElementToBeRemoved, } from "@testing-library/react"; -import { AppProviders } from "app"; +import { AppProviders } from "App"; import { DashboardLayout } from "components/Dashboard/DashboardLayout"; import { i18n } from "i18n"; import { TemplateSettingsLayout } from "pages/TemplateSettingsPage/TemplateSettingsLayout";