From 3ede2a2eaf0cf511acfb39c6d9e3d7ab2c98aeb0 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Fri, 25 Feb 2022 21:23:16 +0100 Subject: [PATCH] rename files --- .vscode/settings.json | 8 ++++---- src/components/SearchBar.tsx | 4 ++-- src/components/layout/ErrorBoundary.tsx | 6 +++--- src/components/layout/SectionHeading.tsx | 2 +- .../{TextInputs => text-inputs}/TextInputControl.tsx | 0 src/views/MovieView.tsx | 1 - src/views/SearchView.tsx | 6 +++--- 7 files changed, 13 insertions(+), 14 deletions(-) rename src/components/{TextInputs => text-inputs}/TextInputControl.tsx (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json index bd0524b6..df15c3b2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { - "files.eol": "\n", - "editor.detectIndentation": false, - "editor.formatOnSave": false, - "editor.tabSize": 2 + "files.eol": "\n", + "editor.detectIndentation": false, + "editor.formatOnSave": false, + "editor.tabSize": 2 } \ No newline at end of file diff --git a/src/components/SearchBar.tsx b/src/components/SearchBar.tsx index 5a619733..b779905d 100644 --- a/src/components/SearchBar.tsx +++ b/src/components/SearchBar.tsx @@ -1,6 +1,6 @@ -import { DropdownButton } from "./Buttons/DropdownButton"; +import { DropdownButton } from "./buttons/DropdownButton"; import { Icons } from "./Icon"; -import { TextInputControl } from "./TextInputs/TextInputControl"; +import { TextInputControl } from "./text-inputs/TextInputControl"; import { useState } from "react"; import { MWMediaType, MWQuery } from "providers"; diff --git a/src/components/layout/ErrorBoundary.tsx b/src/components/layout/ErrorBoundary.tsx index 504b8b7a..d1c5b209 100644 --- a/src/components/layout/ErrorBoundary.tsx +++ b/src/components/layout/ErrorBoundary.tsx @@ -1,7 +1,7 @@ -import { IconPatch } from "components/Buttons/IconPatch"; +import { IconPatch } from "components/buttons/IconPatch"; import { Icons } from "components/Icon"; -import { Link } from "components/Text/Link"; -import { Title } from "components/Text/Title"; +import { Link } from "components/text/Link"; +import { Title } from "components/text/Title"; import { DISCORD_LINK, GITHUB_LINK } from "mw_constants"; import { Component } from "react"; diff --git a/src/components/layout/SectionHeading.tsx b/src/components/layout/SectionHeading.tsx index 73aa9b3d..d9f3c6aa 100644 --- a/src/components/layout/SectionHeading.tsx +++ b/src/components/layout/SectionHeading.tsx @@ -1,5 +1,5 @@ import { Icon, Icons } from "components/Icon"; -import { ArrowLink } from "components/Text/ArrowLink"; +import { ArrowLink } from "components/text/ArrowLink"; import { ReactNode } from "react"; interface SectionHeadingProps { diff --git a/src/components/TextInputs/TextInputControl.tsx b/src/components/text-inputs/TextInputControl.tsx similarity index 100% rename from src/components/TextInputs/TextInputControl.tsx rename to src/components/text-inputs/TextInputControl.tsx diff --git a/src/views/MovieView.tsx b/src/views/MovieView.tsx index 0baf469e..a147a767 100644 --- a/src/views/MovieView.tsx +++ b/src/views/MovieView.tsx @@ -10,7 +10,6 @@ export function MovieView() { const store = useWatchedContext(); useEffect(() => { - throw new Error("Hi"); (async () => { setStreamUrl(mediaPortable && (await getStream(mediaPortable))); })(); diff --git a/src/views/SearchView.tsx b/src/views/SearchView.tsx index 8cbc3e8e..1ba85316 100644 --- a/src/views/SearchView.tsx +++ b/src/views/SearchView.tsx @@ -12,11 +12,11 @@ import { ThinContainer } from "components/layout/ThinContainer"; import { SectionHeading } from "components/layout/SectionHeading"; import { Icons } from "components/Icon"; import { Loading } from "components/layout/Loading"; -import { Tagline } from "components/Text/Tagline"; -import { Title } from "components/Text/Title"; +import { Tagline } from "components/text/Tagline"; +import { Title } from "components/text/Title"; import { useDebounce } from "hooks/useDebounce"; import { useLoading } from "hooks/useLoading"; -import { IconPatch } from "components/Buttons/IconPatch"; +import { IconPatch } from "components/buttons/IconPatch"; function SearchLoading() { return ;