mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 11:34:56 -06:00
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
// @flow
|
|
import PlaceRecord from '../records/PlaceRecord';
|
|
import { Observable } from 'rxjs';
|
|
import { List } from 'immutable';
|
|
import { pushInto } from '../helpers/ImmutableHelpers';
|
|
|
|
// TODO open a websoket and create observable from it
|
|
const DUMMY_DATA = [
|
|
{
|
|
id: 1,
|
|
name: 'Whole Foods',
|
|
address: '525 N. Lamar Blvd, Austin',
|
|
},
|
|
{
|
|
id: 2,
|
|
name: "Trader Joe's",
|
|
addresss: '211 Walter Seaholm Dr, Ste 100, Austin',
|
|
},
|
|
{
|
|
id: 3,
|
|
name: 'Royal Blue Grocery',
|
|
address: '525 N. Lamar Blvd, Austin',
|
|
},
|
|
{
|
|
id: 4,
|
|
name: 'Royal Blue Grocery',
|
|
address: '247 W. 3rd St, Austin',
|
|
},
|
|
{
|
|
id: 5,
|
|
name: 'Royal Blue Grocery',
|
|
address: '360 Nueces St, Austin',
|
|
},
|
|
{
|
|
id: 6,
|
|
name: 'Second Street Market',
|
|
address: '200 San Jacinto Blvd, Austin',
|
|
},
|
|
{
|
|
id: 7,
|
|
name: 'Lonestar Souvenir and Food',
|
|
address: '502 E. 6th St, Austin',
|
|
},
|
|
];
|
|
|
|
export default Observable.from(DUMMY_DATA).map(PlaceRecord).scan(pushInto, List());
|