保誠-保戶業務員媒合平台
wayne
2021-12-03 e0395e332ec0d7a0ee42f611327435c0f3724c00
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));
}