Guest User

Untitled

a guest
Jul 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. state.product.inspect
  2. ƒ () {
  3. return this.toString();
  4. }
  5.  
  6. import type { RecordFactory, RecordOf } from 'immutable'
  7. import { Record } from 'immutable'
  8.  
  9. type ShowProductReportsProps = {
  10. value: boolean
  11. }
  12.  
  13. export const makeShowProductReports:
  14. RecordFactory<ShowProductReportsProps> = Record({
  15. value: false
  16. })
  17.  
  18. export type ShowProductReports = RecordOf<ShowProductReportsProps>
  19.  
  20. type InspectProps = {
  21. showProductReports: ShowProductReports
  22. }
  23.  
  24. export const makeInspect: RecordFactory<InspectProps> = Record({
  25. showProductReports: new makeShowProductReports()
  26. })
  27.  
  28. export type Inspect = RecordOf<InspectProps>
  29.  
  30. type ProductComponentProps = {
  31. add: any,
  32. search: any,
  33. edit: any,
  34. inspect: any
  35. }
  36.  
  37. export const makeProduct: RecordFactory<ProductComponentProps> = Record({
  38. add: new makeAdd(),
  39. search: new makeSearch(),
  40. edit: new makeEdit(),
  41. inspect: new makeInspect()
  42. })
Add Comment
Please, Sign In to add comment