From 179047d672dbd19f3f2a93e61588168b9cef49b7 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Fri, 2 Jul 2021 23:16:56 -0400 Subject: [PATCH] move files out of newui folder --- src/App.css | 38 --- src/App.test.js | 8 - src/App.tsx | 40 --- src/components/App.tsx | 33 +++ .../Authentication/Authenticator.tsx | 16 +- src/components/{NewUI => }/Availability.tsx | 0 src/components/Comment.tsx | 13 - src/components/CreateGroup.tsx | 86 ------ src/components/CreatePool.tsx | 261 ------------------ src/components/{NewUI => }/Event.tsx | 0 src/components/{NewUI => }/EventCreator.tsx | 0 .../{NewUI => }/EventCreatorLink.tsx | 0 src/components/{NewUI => }/EventStream.tsx | 0 src/components/{NewUI => }/Events.tsx | 0 src/components/Group.tsx | 134 ++++----- src/components/{NewUI => }/GroupCreator.tsx | 0 .../{NewUI => }/GroupCreatorLink.tsx | 0 .../{NewUI => }/GroupJoinerLink.tsx | 0 src/components/{NewUI => }/GroupList.tsx | 0 .../{NewUI => }/GroupSettingsLink.tsx | 0 src/components/Groups.tsx | 158 ++--------- src/components/Home.tsx | 164 ----------- src/components/Logout.tsx | 7 - src/components/Main.tsx | 144 ---------- src/components/MyGroups.tsx | 118 -------- src/components/MyPools.tsx | 123 --------- src/components/Nav.tsx | 104 ------- src/components/NewUI/App.tsx | 23 -- src/components/NewUI/Group.tsx | 75 ----- src/components/NewUI/Groups.tsx | 34 --- src/components/Pool.tsx | 232 ---------------- src/components/PoolMap.tsx | 51 ---- src/components/PoolPage.tsx | 25 -- src/components/Pools.tsx | 117 -------- src/components/Profile.tsx | 123 --------- src/components/{NewUI => }/UIButton.tsx | 0 src/components/{NewUI => }/UIDateInput.tsx | 0 .../{NewUI => }/UIDatetimeInput.tsx | 0 src/components/{NewUI => }/UILink.tsx | 0 .../{NewUI => }/UIPlacesAutocomplete.tsx | 0 src/components/{NewUI => }/UIPressable.tsx | 0 src/components/{NewUI => }/UIPrimaryTitle.tsx | 0 src/components/{NewUI => }/UISecondaryBox.tsx | 0 .../{NewUI => }/UISecondaryHeader.tsx | 0 src/components/{NewUI => }/UITextInput.tsx | 0 src/components/{NewUI => }/UITimeInput.tsx | 0 src/components/UpdatePool.tsx | 117 -------- src/components/{NewUI => }/WheelShare.tsx | 0 src/components/{NewUI => }/api.ts | 0 src/components/{NewUI => }/bits.ts | 0 src/components/{NewUI => }/colors.ts | 0 src/components/{NewUI => }/latlongdist.ts | 0 src/components/{NewUI => }/localstorage.ts | 0 src/components/{NewUI => }/usePlace.ts | 2 +- src/components/{NewUI => }/useThrottle.ts | 0 src/components/{NewUI => }/useToggle.ts | 0 src/components/{NewUI => }/wslrucache.ts | 0 src/index.js | 2 +- 58 files changed, 127 insertions(+), 2121 deletions(-) delete mode 100644 src/App.css delete mode 100644 src/App.test.js delete mode 100644 src/App.tsx create mode 100644 src/components/App.tsx rename src/components/{NewUI => }/Availability.tsx (100%) delete mode 100644 src/components/Comment.tsx delete mode 100644 src/components/CreateGroup.tsx delete mode 100644 src/components/CreatePool.tsx rename src/components/{NewUI => }/Event.tsx (100%) rename src/components/{NewUI => }/EventCreator.tsx (100%) rename src/components/{NewUI => }/EventCreatorLink.tsx (100%) rename src/components/{NewUI => }/EventStream.tsx (100%) rename src/components/{NewUI => }/Events.tsx (100%) rename src/components/{NewUI => }/GroupCreator.tsx (100%) rename src/components/{NewUI => }/GroupCreatorLink.tsx (100%) rename src/components/{NewUI => }/GroupJoinerLink.tsx (100%) rename src/components/{NewUI => }/GroupList.tsx (100%) rename src/components/{NewUI => }/GroupSettingsLink.tsx (100%) delete mode 100644 src/components/Home.tsx delete mode 100644 src/components/Logout.tsx delete mode 100644 src/components/Main.tsx delete mode 100644 src/components/MyGroups.tsx delete mode 100644 src/components/MyPools.tsx delete mode 100644 src/components/Nav.tsx delete mode 100644 src/components/NewUI/App.tsx delete mode 100644 src/components/NewUI/Group.tsx delete mode 100644 src/components/NewUI/Groups.tsx delete mode 100644 src/components/Pool.tsx delete mode 100644 src/components/PoolMap.tsx delete mode 100644 src/components/PoolPage.tsx delete mode 100644 src/components/Pools.tsx delete mode 100644 src/components/Profile.tsx rename src/components/{NewUI => }/UIButton.tsx (100%) rename src/components/{NewUI => }/UIDateInput.tsx (100%) rename src/components/{NewUI => }/UIDatetimeInput.tsx (100%) rename src/components/{NewUI => }/UILink.tsx (100%) rename src/components/{NewUI => }/UIPlacesAutocomplete.tsx (100%) rename src/components/{NewUI => }/UIPressable.tsx (100%) rename src/components/{NewUI => }/UIPrimaryTitle.tsx (100%) rename src/components/{NewUI => }/UISecondaryBox.tsx (100%) rename src/components/{NewUI => }/UISecondaryHeader.tsx (100%) rename src/components/{NewUI => }/UITextInput.tsx (100%) rename src/components/{NewUI => }/UITimeInput.tsx (100%) delete mode 100644 src/components/UpdatePool.tsx rename src/components/{NewUI => }/WheelShare.tsx (100%) rename src/components/{NewUI => }/api.ts (100%) rename src/components/{NewUI => }/bits.ts (100%) rename src/components/{NewUI => }/colors.ts (100%) rename src/components/{NewUI => }/latlongdist.ts (100%) rename src/components/{NewUI => }/localstorage.ts (100%) rename src/components/{NewUI => }/usePlace.ts (90%) rename src/components/{NewUI => }/useThrottle.ts (100%) rename src/components/{NewUI => }/useToggle.ts (100%) rename src/components/{NewUI => }/wslrucache.ts (100%) diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/src/App.test.js b/src/App.test.js deleted file mode 100644 index 1f03afe..0000000 --- a/src/App.test.js +++ /dev/null @@ -1,8 +0,0 @@ -import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/src/App.tsx b/src/App.tsx deleted file mode 100644 index b93ba96..0000000 --- a/src/App.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import { BrowserRouter, Route, Switch } from 'react-router-dom'; -import './App.css'; -import AuthenticationWrapper from './components/Authentication/AuthenticationWrapper'; -import Authenticator from './components/Authentication/Authenticator'; -import CreateGroup from './components/CreateGroup'; -import Group from './components/Group'; -import Groups from './components/Groups'; -import Home from './components/Home'; -import Logout from './components/Logout'; -import Main from './components/Main'; -import MyGroups from './components/MyGroups'; -import Nav from './components/Nav'; -import PoolPage from './components/PoolPage'; -import Profile from './components/Profile'; -import UpdatePool from './components/UpdatePool'; - -function App() { - return ( - - -