mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
Load data from api to the page
This commit is contained in:
@@ -2,3 +2,4 @@ export const DASHBOARD: string = '/dashboard';
|
||||
export const USER: string = '/user';
|
||||
export const ROOM: string = '/room';
|
||||
export const OTHER_PATH: string = '*';
|
||||
export const BASE_URL: string = 'https://hotel-management-api.loiphan.com/';
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
import { TUser } from '../globals/types';
|
||||
|
||||
export const sampleData: TUser[] = [
|
||||
{
|
||||
id: '123',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '0937425123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
{
|
||||
id: '456',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
{
|
||||
id: '231',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
{
|
||||
id: '241',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
{
|
||||
id: '512',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
{
|
||||
id: '524',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
{
|
||||
id: '125',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
{
|
||||
id: '111',
|
||||
name: 'Nezumi',
|
||||
identifiedCode: '123',
|
||||
phone: '123',
|
||||
roomId: '246',
|
||||
address: 'Da Nang',
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user