WebJamApps/JaMmusic

View on GitHub
src/providers/fetchGigs.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import socketClusterMessages from './socketClusterMessages';
import type { Igig } from './Data.provider';

export const defaultGig: Igig = {
  date: '',
  time: '',
  tickets: '',
  location: '',
  venue: '',
  _id: '',
  datetime: null,
  city: '',
  usState: 'Virginia',
  id: 0,
};

const getGigs = (
  setGigs: (_arg0: Igig[] | null) => void,
): boolean => socketClusterMessages.initialMessage(setGigs, 'allTours');

export default { getGigs };