保誠-保戶業務員媒合平台
Jack
2021-12-01 2f0789c087589a053f6c80e3bfb17b0a4c2c4514
1
2
3
4
5
6
7
8
9
10
import { AppointmentRequests } from "./api/consultant";
 
export function getRequestsFromStorage(): AppointmentRequests {
  const requests = localStorage.getItem('myRequests');
  return requests ? JSON.parse(requests) : null;
}
 
export function setRequestsToStorage(myRequests: AppointmentRequests): void {
  localStorage.setItem('myRequests', JSON.stringify(myRequests));
}