Fix form keyboard issues and sticky footers in agent screens
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { createAsyncThunk } from '@reduxjs/toolkit';
|
||||
|
||||
import {
|
||||
demoServiceRequests,
|
||||
demoSupportMessages,
|
||||
} from '../../../constants/mockData';
|
||||
import type { ServiceRequest, SupportMessage } from '../../../types/app';
|
||||
import { sleep } from '../../../utils/async';
|
||||
|
||||
export const seedServiceRequests = createAsyncThunk<ServiceRequest[]>(
|
||||
'services/seedRequests',
|
||||
async () => {
|
||||
await sleep(140);
|
||||
return demoServiceRequests;
|
||||
},
|
||||
);
|
||||
|
||||
export const seedSupportMessages = createAsyncThunk<SupportMessage[]>(
|
||||
'services/seedSupportMessages',
|
||||
async () => {
|
||||
await sleep(120);
|
||||
return demoSupportMessages;
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user