Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Initial setup apollo on client #393

Merged
merged 16 commits into from
Aug 2, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move some files around
  • Loading branch information
Zeko369 committed Aug 2, 2020
commit 256485197493a9d589561be8c45f2d051c10505e
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
IField,
IEventFormData,
} from './EventFormUtils';
import { IEventModal } from 'client/store/types/events';
import useFormStyles from '../../shared/components/formStyles';
import { IEventModal } from '../../Events/components/node_modules/client/store/types/events';
import useFormStyles from '../shared/components/formStyles';

const formatValue = (field: IField, store?: IEventModal): any => {
const { key } = field;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IVenueModal } from 'client/store/types/venues';
import { IEventModal } from 'client/store/types/events';
import { IEventModal } from '../../Events/components/node_modules/client/store/types/events';

export interface IField {
key: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import { Card, Typography } from '@material-ui/core';
import Link from 'next/link';

import { IEventModal } from 'client/store/types/events';
import { IEventModal } from '../../Events/components/node_modules/client/store/types/events';
import { ProgressCardContent } from 'client/components';
import Tags from './components/Tag';
import Actions from './components/Actions';
import Tags from '../../Events/components/Tag';
import Actions from '../../Events/components/Actions';

interface IEventItemProps {
event: IEventModal;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useForm, Controller } from 'react-hook-form';
import { Button, TextField, FormControl } from '@material-ui/core';
import useFormStyles from '../../shared/components/formStyles';
import useFormStyles from '../shared/components/formStyles';

const fields = ['country_code', 'city', 'region', 'postal_code', 'address'];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { ILocationModal } from 'client/store/types/locations';
import getLocationString from 'client/helpers/getLocationString';
import { IVenueModal } from 'client/store/types/venues';
import useFormStyles from '../../shared/components/formStyles';
import useFormStyles from '../shared/components/formStyles';

interface IData {
name: string;
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/events/[id]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { makeStyles } from '@material-ui/core';
import {
eventActions,
venueActions,
} from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
} from '../../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import useThunkDispatch from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import Skeleton from 'client/components/Dashboard/Events/Skeleton';
import { EventForm } from 'client/components/Dashboard/Events';
import Layout from 'client/components/Dashboard/shared/Layout';
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/events/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { useRouter } from 'next/router';
import {
eventActions,
venueActions,
} from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
} from '../../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import { ProgressCardContent } from '../../../../modules/dashboard/Dashboard/Events/node_modules/client/components';
import useThunkDispatch from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import Skeleton from 'client/components/Dashboard/Events/Skeleton';
import Layout from 'client/components/Dashboard/shared/Layout';
import Tags from 'client/components/Dashboard/Events/components/Tag';
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/events/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { useSelector } from 'react-redux';
import Link from 'next/link';

import { AppStoreState } from 'client/store/reducers';
import { eventActions } from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
import { eventActions } from '../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { IEventModal } from '../../../modules/dashboard/Dashboard/Events/node_modules/client/store/types/events';
import useThunkDispatch from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import EventItem from 'client/components/Dashboard/Events/EventItem';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/events/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { useRouter } from 'next/router';
import {
eventActions,
venueActions,
} from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
} from '../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import EventForm from 'client/components/Dashboard/Events/EventForm';
import { IEventFormData } from 'client/components/Dashboard/Events/EventFormUtils';
import { AppStoreState } from 'client/store/reducers';
import useThunkDispatch from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import { Skeleton } from 'client/components/Dashboard/Events';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/locations/[id]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useSelector } from 'react-redux';
import { makeStyles } from '@material-ui/core';
import { useRouter } from 'next/router';

import { locationActions } from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
import { locationActions } from '../../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import sanitizeFormData from 'client/helpers/sanitizeFormData';
import useThunkDispatch from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import { LocationForm, Skeleton } from 'client/components/Dashboard/Locations';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/locations/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useSelector } from 'react-redux';
import { Card, Typography } from '@material-ui/core';
import { useRouter } from 'next/router';

import { locationActions } from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
import { locationActions } from '../../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import { ProgressCardContent } from '../../../../modules/dashboard/Dashboard/Events/node_modules/client/components';
import useThunkDispatch from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import Skeleton from 'client/components/Dashboard/Locations/Skeleton';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/locations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { Grid } from '@material-ui/core';
import { useSelector } from 'react-redux';
import Link from 'next/link';

import { locationActions } from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
import { locationActions } from '../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import { ILocationModal } from '../../../modules/dashboard/Dashboard/Locations/node_modules/client/store/types/locations';
import useThunkDispatch from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import LocationItem from 'client/components/Dashboard/Locations/LocationItem';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/locations/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useSelector } from 'react-redux';
import { makeStyles } from '@material-ui/core';
import { useRouter } from 'next/router';

import { locationActions } from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
import { locationActions } from '../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import sanitizeFormData from 'client/helpers/sanitizeFormData';
import useThunkDispatch from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import { LocationForm, Skeleton } from 'client/components/Dashboard/Locations';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/venues/[id]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { useRouter } from 'next/router';
import {
venueActions,
locationActions,
} from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
} from '../../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import { VenueForm, Skeleton } from 'client/components/Dashboard/Venues';
import sanitizeFormData from 'client/helpers/sanitizeFormData';
import useThunkDispatch from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import Layout from 'client/components/Dashboard/shared/Layout';

const useStyles = makeStyles(() => ({
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/venues/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useSelector } from 'react-redux';
import { Card, Typography } from '@material-ui/core';
import { useRouter } from 'next/router';

import { venueActions } from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
import { venueActions } from '../../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import { ProgressCardContent } from '../../../../modules/dashboard/Dashboard/Events/node_modules/client/components';
import useThunkDispatch from '../../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import Skeleton from 'client/components/Dashboard/Venues/Skeleton';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/venues/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Grid } from '@material-ui/core';
import { useSelector } from 'react-redux';
import Link from 'next/link';

import { venueActions } from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
import { venueActions } from '../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import VenueItem from 'client/components/Dashboard/Venues/VenueItem';
import { IVenueModal } from '../../../modules/dashboard/Dashboard/Events/node_modules/client/store/types/venues';
import useThunkDispatch from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import Layout from 'client/components/Dashboard/shared/Layout';

const Venues: React.FC = () => {
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/venues/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { useRouter } from 'next/router';
import {
locationActions,
venueActions,
} from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/store/actions';
} from '../../../modules/dashboard/Events/components/node_modules/client/store/actions';
import { AppStoreState } from 'client/store/reducers';
import sanitizeFormData from 'client/helpers/sanitizeFormData';
import useThunkDispatch from '../../../modules/dashboard/Dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import useThunkDispatch from '../../../modules/dashboard/Events/components/node_modules/client/hooks/useThunkDispatch';
import { VenueForm, Skeleton } from 'client/components/Dashboard/Venues/';
import Layout from 'client/components/Dashboard/shared/Layout';

Expand Down