Skip to content

Commit

Permalink
Reorganize files
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Sep 11, 2023
1 parent 9244bbb commit e67a48a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
13 changes: 0 additions & 13 deletions client-next/src/App.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const initialViewState = {
longitude: 10.2332855,
zoom: 4,
};
export function MapContainer() {
export function MapView() {
return (
<Map
// @ts-ignore // TODO: why TypeScript complaining about this
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTripQuery } from './useTripQuery.ts';
import { useTripQuery } from '../hooks/useTripQuery.ts';

export function TripQueryContainer() {
export function SearchBarContainer() {
const [data, callback] = useTripQuery();

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useState } from 'react';
import { graphql } from './gql';
import { graphql } from '../gql';
import request from 'graphql-request';
import { TripQuery, TripQueryVariables } from './gql/graphql.ts';
import { TripQuery, TripQueryVariables } from '../gql/graphql.ts';

// TODO: make this endpoint url configurable
const endpoint = `https://api.entur.io/journey-planner/v3/graphql`;
Expand Down
2 changes: 1 addition & 1 deletion client-next/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import 'bootstrap/dist/css/bootstrap.min.css';
import { App } from './App.tsx';
import { App } from './screens/App.tsx';

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
Expand Down
13 changes: 13 additions & 0 deletions client-next/src/screens/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { MapView } from '../components/MapView.tsx';
import { NavBarContainer } from '../components/NavBarContainer.tsx';
import { SearchBarContainer } from '../components/SearchBarContainer.tsx';

export function App() {
return (
<div className="app">
<NavBarContainer />
<SearchBarContainer />
<MapView />
</div>
);
}

0 comments on commit e67a48a

Please sign in to comment.