|
|
|
@ -11,8 +11,8 @@ import { getSlotStatus } from '@/src/utils/slotStatus';
|
|
|
|
const mockRemotesData = {
|
|
|
|
const mockRemotesData = {
|
|
|
|
remotes: [
|
|
|
|
remotes: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
logo_url: '/images/tennis-club-logo.png',
|
|
|
|
logo_url: '/images/tennis-club-logo.png',
|
|
|
|
sports: [
|
|
|
|
sports: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -32,7 +32,7 @@ const mockCurrentUser: RemoteMemberWithNameAndRemoteSlug = {
|
|
|
|
self_reported_level: 3.5,
|
|
|
|
self_reported_level: 3.5,
|
|
|
|
full_account_str: 'Demo User',
|
|
|
|
full_account_str: 'Demo User',
|
|
|
|
name: 'Demo User',
|
|
|
|
name: 'Demo User',
|
|
|
|
remote_slug: 'tennis-club-zurich'
|
|
|
|
origin_slug: 'tennis-club-zurich'
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Generate mock players
|
|
|
|
// Generate mock players
|
|
|
|
@ -63,9 +63,9 @@ const generateMockSlots = (): CourtSlotWithDurationAndStatus[] => {
|
|
|
|
booked_by: null,
|
|
|
|
booked_by: null,
|
|
|
|
i: null,
|
|
|
|
i: null,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
remote_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
origin_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sport: {
|
|
|
|
sport: {
|
|
|
|
@ -87,9 +87,9 @@ const generateMockSlots = (): CourtSlotWithDurationAndStatus[] => {
|
|
|
|
booked_by: null,
|
|
|
|
booked_by: null,
|
|
|
|
i: null,
|
|
|
|
i: null,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
remote_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
origin_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sport: {
|
|
|
|
sport: {
|
|
|
|
@ -111,9 +111,9 @@ const generateMockSlots = (): CourtSlotWithDurationAndStatus[] => {
|
|
|
|
booked_by: null,
|
|
|
|
booked_by: null,
|
|
|
|
i: null,
|
|
|
|
i: null,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
remote_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
origin_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sport: {
|
|
|
|
sport: {
|
|
|
|
@ -136,9 +136,9 @@ const generateMockSlots = (): CourtSlotWithDurationAndStatus[] => {
|
|
|
|
booked_by: { remote_member_id: 5, app_user_id: 5 },
|
|
|
|
booked_by: { remote_member_id: 5, app_user_id: 5 },
|
|
|
|
i: null,
|
|
|
|
i: null,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
remote_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
origin_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sport: {
|
|
|
|
sport: {
|
|
|
|
@ -160,9 +160,9 @@ const generateMockSlots = (): CourtSlotWithDurationAndStatus[] => {
|
|
|
|
booked_by: { remote_member_id: 2, app_user_id: 2 },
|
|
|
|
booked_by: { remote_member_id: 2, app_user_id: 2 },
|
|
|
|
i: null,
|
|
|
|
i: null,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
remote_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
origin_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sport: {
|
|
|
|
sport: {
|
|
|
|
@ -185,9 +185,9 @@ const generateMockSlots = (): CourtSlotWithDurationAndStatus[] => {
|
|
|
|
booked_by: null,
|
|
|
|
booked_by: null,
|
|
|
|
i: null,
|
|
|
|
i: null,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
remote_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
origin_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sport: {
|
|
|
|
sport: {
|
|
|
|
@ -209,9 +209,9 @@ const generateMockSlots = (): CourtSlotWithDurationAndStatus[] => {
|
|
|
|
booked_by: null,
|
|
|
|
booked_by: null,
|
|
|
|
i: null,
|
|
|
|
i: null,
|
|
|
|
remote: {
|
|
|
|
remote: {
|
|
|
|
remote_slug: 'tennis-club-zurich',
|
|
|
|
origin_slug: 'tennis-club-zurich',
|
|
|
|
remote_name: 'Tennis Club Zurich',
|
|
|
|
origin_name: 'Tennis Club Zurich',
|
|
|
|
remote_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
origin_logo_url: '/images/tennis-club-logo.png',
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
src_timezone: 'Europe/Zurich'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sport: {
|
|
|
|
sport: {
|
|
|
|
|