@mohamed-karawia/library 0.1.20 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/dist/index.js +27 -27
  2. package/dist/stories/Chat/Chat.js +24 -31
  3. package/dist/stories/Community/Community.js +54 -34
  4. package/dist/stories/Events/Event/Event.js +13 -6
  5. package/dist/stories/Events/EventsList/EventsList.js +14 -11
  6. package/dist/stories/Forms/AddPhoto/AddPhoto.js +8 -7
  7. package/dist/stories/Forms/CreateEvent/CreateEvent.js +115 -0
  8. package/dist/stories/Forms/CreateFolder/CreateFolder.js +87 -0
  9. package/dist/stories/Forms/CreateSong/CreateSong.js +98 -0
  10. package/dist/stories/Library/Folders/Folders.js +27 -21
  11. package/dist/stories/Library/Notes/Notes.js +29 -18
  12. package/dist/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.js +38 -0
  13. package/dist/stories/Modals/AddPhotoModal/AddPhotoModal.js +40 -0
  14. package/dist/stories/Modals/AddSongModal/AddSongModal.js +41 -0
  15. package/dist/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.js +41 -0
  16. package/dist/stories/Modals/AddVideoModal/AddVideoModal.js +39 -0
  17. package/dist/stories/Modals/ChatConfigModal/ChatContifgModal.js +93 -0
  18. package/dist/stories/Modals/CreateEventModal/CreateEventModal.js +42 -0
  19. package/dist/stories/Modals/CreateFolderModal/CreateFolderModal.js +36 -0
  20. package/dist/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.js +41 -0
  21. package/dist/stories/Modals/CreateNoteModal/CreateNoteModal.js +42 -0
  22. package/dist/stories/Modals/EventConfigModal/EventConfigModal.js +99 -0
  23. package/dist/stories/Modals/EventsConfigModal/EventsConfigModal.js +87 -0
  24. package/dist/stories/Modals/FoldersConfigModal/FoldersConfigModal.js +87 -0
  25. package/dist/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.js +88 -0
  26. package/dist/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.js +87 -0
  27. package/dist/stories/Modals/NotesConfigModal/NotesConfigModal.js +87 -0
  28. package/dist/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.js +88 -0
  29. package/dist/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.js +88 -0
  30. package/dist/stories/Modals/ShowImgModal/ShowImgModal.js +62 -0
  31. package/dist/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.js +88 -0
  32. package/dist/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.js +89 -0
  33. package/dist/stories/Modals/VideoConfigModal/VideoConfigModal.js +99 -0
  34. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +9 -46
  35. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +57 -37
  36. package/dist/stories/Pages/Chat/Chat.js +1 -1
  37. package/dist/stories/Pages/Events/Event/Event.js +1 -1
  38. package/dist/stories/Pages/Events/Events/Events.js +1 -1
  39. package/dist/stories/Pages/Library/Folders/Library.js +2 -2
  40. package/dist/stories/Pages/Library/Notes/Notes.js +2 -2
  41. package/dist/stories/Pages/Music/MusicAlbum/Music.js +2 -2
  42. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -2
  43. package/dist/stories/Pages/Photos/Album/Album.js +2 -2
  44. package/dist/stories/Pages/Photos/Albums/Albums.js +2 -2
  45. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -2
  46. package/dist/stories/Pages/Video/VideoAlbum/Video.js +2 -2
  47. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +26 -16
  48. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +11 -4
  49. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +7 -5
  50. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +7 -5
  51. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +7 -5
  52. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +7 -5
  53. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
  54. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +8 -7
  55. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +7 -5
  56. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +7 -5
  57. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +7 -5
  58. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +7 -5
  59. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +7 -5
  60. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +7 -5
  61. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +7 -5
  62. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +7 -5
  63. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +7 -5
  64. package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
  65. package/dist/stories/Reusable Components/Community/Community.js +13 -36
  66. package/dist/stories/Reusable Components/Sections/Sections.js +67 -0
  67. package/dist/stories/Spaces/Chat/Chat.js +103 -0
  68. package/dist/stories/Spaces/EventsList/EventsList.js +140 -0
  69. package/dist/stories/Spaces/NotesList/NotesList.js +144 -0
  70. package/dist/stories/Spaces/ViewDetailedPhoto/ViewDetailedPhoto.js +24 -0
  71. package/dist/stories/Spaces/ViewEvent/Event.js +146 -0
  72. package/dist/stories/Spaces/ViewFolders/ViewFolders.js +136 -0
  73. package/dist/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.js +136 -0
  74. package/dist/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.js +130 -0
  75. package/dist/stories/Spaces/ViewNote/ViewNote.js +27 -0
  76. package/dist/stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.js +231 -0
  77. package/dist/stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums.js +131 -0
  78. package/dist/stories/Spaces/ViewVideo/ViewVideo.js +169 -0
  79. package/dist/stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList.js +157 -0
  80. package/dist/stories/Spaces/ViewVideoAlbums/ViewVideoAlbums.js +164 -0
  81. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +11 -4
  82. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +17 -6
  83. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +24 -25
  84. package/dist/stories/Widgets/VideoPlayer/VideoPlayer.js +235 -0
  85. package/dist/stories/helpers/util.js +24 -24
  86. package/dist/stories/store/actions/actions.js +16 -0
  87. package/dist/stories/store/communities.js +27 -29
  88. package/dist/stories/store/community.js +941 -0
  89. package/dist/stories/store/store.js +9 -4
  90. package/package.json +1 -1
  91. package/src/index.js +16 -16
  92. package/src/stories/Community/Community.jsx +31 -32
  93. package/src/stories/Forms/AddPhoto/AddPhoto.jsx +72 -72
  94. package/src/stories/{Events → Forms}/CreateEvent/CreateEvent.jsx +5 -1
  95. package/src/stories/{Library → Forms}/CreateFolder/CreateFolder.jsx +0 -0
  96. package/src/stories/Forms/{AddSong/AddSong.jsx → CreateSong/CreateSong.jsx} +0 -0
  97. package/src/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.jsx +27 -0
  98. package/src/stories/Modals/AddPhotoModal/AddPhotoModal.jsx +29 -0
  99. package/src/stories/Modals/AddSongModal/AddSongModal.jsx +37 -0
  100. package/src/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.jsx +38 -0
  101. package/src/stories/Modals/AddVideoModal/AddVideoModal.jsx +35 -0
  102. package/src/stories/Modals/ChatConfigModal/ChatContifgModal.jsx +77 -0
  103. package/src/stories/Modals/CreateEventModal/CreateEventModal.jsx +30 -0
  104. package/src/stories/Modals/CreateFolderModal/CreateFolderModal.jsx +39 -0
  105. package/src/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.jsx +37 -0
  106. package/src/stories/Modals/CreateNoteModal/CreateNoteModal.jsx +43 -0
  107. package/src/stories/Modals/EventConfigModal/EventConfigModal.jsx +74 -0
  108. package/src/stories/Modals/EventsConfigModal/EventsConfigModal.jsx +67 -0
  109. package/src/stories/Modals/FoldersConfigModal/FoldersConfigModal.jsx +66 -0
  110. package/src/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.jsx +69 -0
  111. package/src/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.jsx +73 -0
  112. package/src/stories/Modals/NotesConfigModal/NotesConfigModal.jsx +65 -0
  113. package/src/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.jsx +71 -0
  114. package/src/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.jsx +69 -0
  115. package/src/stories/Modals/ShowImgModal/ShowImgModal.jsx +87 -0
  116. package/src/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.jsx +67 -0
  117. package/src/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.jsx +67 -0
  118. package/src/stories/Modals/VideoConfigModal/VideoConfigModal.jsx +78 -0
  119. package/src/stories/Pages/Chat/Chat.jsx +1 -1
  120. package/src/stories/Pages/Events/Event/Event.jsx +1 -1
  121. package/src/stories/Pages/Events/Events/Events.jsx +1 -1
  122. package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
  123. package/src/stories/Pages/Library/Notes/Notes.jsx +1 -1
  124. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +1 -1
  125. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +1 -1
  126. package/src/stories/Pages/Photos/Album/Album.jsx +1 -1
  127. package/src/stories/Pages/Photos/Albums/Albums.jsx +1 -1
  128. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +1 -1
  129. package/src/stories/Pages/Video/VideoAlbum/Video.jsx +1 -1
  130. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +106 -104
  131. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +7 -5
  132. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
  133. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +8 -6
  134. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +6 -4
  135. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +13 -11
  136. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +36 -34
  137. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +18 -16
  138. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +7 -5
  139. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
  140. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +8 -6
  141. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +10 -8
  142. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +7 -5
  143. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +7 -5
  144. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +7 -5
  145. package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
  146. package/src/stories/Reusable Components/Community/Community.jsx +10 -33
  147. package/src/stories/{Sections/Sections.jsx → Reusable Components/Sections/Sections.jsx } +1 -1
  148. package/src/stories/Spaces/Chat/Chat.jsx +77 -0
  149. package/src/stories/Spaces/EventsList/EventsList.jsx +118 -0
  150. package/src/stories/Spaces/NotesList/NotesList.jsx +125 -0
  151. package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
  152. package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +17 -73
  153. package/src/stories/Spaces/ViewFolders/ViewFolders.jsx +122 -0
  154. package/src/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.jsx +118 -0
  155. package/src/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.jsx +108 -0
  156. package/src/stories/{Library → Spaces}/ViewNote/ViewNote.jsx +0 -0
  157. package/src/stories/{Photo Album/ViewAlbum/ViewAlbum.jsx → Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.jsx} +48 -134
  158. package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +22 -54
  159. package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +21 -47
  160. package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +31 -78
  161. package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +20 -51
  162. package/src/stories/{VideoAlbum → Widgets}/VideoPlayer/VideoPlayer.jsx +0 -0
  163. package/src/stories/helpers/util.js +13 -13
  164. package/src/stories/store/actions/actions.js +7 -0
  165. package/src/stories/store/{communities.js → community.js} +27 -29
  166. package/src/stories/store/store.js +3 -4
  167. package/src/stories/Chat/Chat.jsx +0 -148
  168. package/src/stories/Events/EventsList/EventsList.jsx +0 -180
  169. package/src/stories/Library/Folders/Folders.jsx +0 -187
  170. package/src/stories/Library/Notes/Notes.jsx +0 -161
  171. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -216
  172. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -152
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "CreateEvent", {
44
44
  Object.defineProperty(exports, "Event", {
45
45
  enumerable: true,
46
46
  get: function get() {
47
- return _Event.default;
47
+ return _ViewEvent.default;
48
48
  }
49
49
  });
50
50
  Object.defineProperty(exports, "EventsList", {
@@ -62,13 +62,13 @@ Object.defineProperty(exports, "CreateLibraryFolder", {
62
62
  Object.defineProperty(exports, "LibraryFolders", {
63
63
  enumerable: true,
64
64
  get: function get() {
65
- return _Folders.default;
65
+ return _ViewFolders.default;
66
66
  }
67
67
  });
68
68
  Object.defineProperty(exports, "LibraryNotes", {
69
69
  enumerable: true,
70
70
  get: function get() {
71
- return _Notes.default;
71
+ return _NotesList.default;
72
72
  }
73
73
  });
74
74
  Object.defineProperty(exports, "ViewLibraryNote", {
@@ -80,7 +80,7 @@ Object.defineProperty(exports, "ViewLibraryNote", {
80
80
  Object.defineProperty(exports, "CreateMusic", {
81
81
  enumerable: true,
82
82
  get: function get() {
83
- return _AddSong.default;
83
+ return _CreateSong.default;
84
84
  }
85
85
  });
86
86
  Object.defineProperty(exports, "CreateMusicAlbum", {
@@ -92,13 +92,13 @@ Object.defineProperty(exports, "CreateMusicAlbum", {
92
92
  Object.defineProperty(exports, "MusicAlbum", {
93
93
  enumerable: true,
94
94
  get: function get() {
95
- return _ViewAlbum.default;
95
+ return _ViewMusicAlbumList.default;
96
96
  }
97
97
  });
98
98
  Object.defineProperty(exports, "MusicAlbums", {
99
99
  enumerable: true,
100
100
  get: function get() {
101
- return _ViewAlbums.default;
101
+ return _ViewMusicAlbums.default;
102
102
  }
103
103
  });
104
104
  Object.defineProperty(exports, "CreatePhotoAlbum", {
@@ -116,13 +116,13 @@ Object.defineProperty(exports, "CreatePhoto", {
116
116
  Object.defineProperty(exports, "PhotoAlbum", {
117
117
  enumerable: true,
118
118
  get: function get() {
119
- return _ViewAlbum2.default;
119
+ return _ViewPhotoAlbumList.default;
120
120
  }
121
121
  });
122
122
  Object.defineProperty(exports, "PhotoAlbums", {
123
123
  enumerable: true,
124
124
  get: function get() {
125
- return _ViewAlbums2.default;
125
+ return _ViewPhotoAlbums.default;
126
126
  }
127
127
  });
128
128
  Object.defineProperty(exports, "BaseMaterial", {
@@ -218,23 +218,23 @@ Object.defineProperty(exports, "CreateVideo", {
218
218
  Object.defineProperty(exports, "VideoAlbums", {
219
219
  enumerable: true,
220
220
  get: function get() {
221
- return _AlbumsGallery.default;
221
+ return _ViewVideoAlbums.default;
222
222
  }
223
223
  });
224
224
  Object.defineProperty(exports, "VidepSpace", {
225
225
  enumerable: true,
226
226
  get: function get() {
227
- return _VideoSpace.default;
227
+ return _ViewVideo.default;
228
228
  }
229
229
  });
230
230
  Object.defineProperty(exports, "VideoAlbum", {
231
231
  enumerable: true,
232
232
  get: function get() {
233
- return _ViewAlbum3.default;
233
+ return _ViewVideoAlbumList.default;
234
234
  }
235
235
  });
236
236
 
237
- var _Chat = _interopRequireDefault(require("./stories/Chat/Chat"));
237
+ var _Chat = _interopRequireDefault(require("./stories/Spaces/Chat/Chat"));
238
238
 
239
239
  var _CreateForm = _interopRequireDefault(require("./stories/Enrollment/Admin/CreateForm/CreateForm"));
240
240
 
@@ -244,35 +244,35 @@ var _ViewForms = _interopRequireDefault(require("./stories/Enrollment/Admin/View
244
244
 
245
245
  var _FillForm = _interopRequireDefault(require("./stories/Enrollment/Guest/FillForm/FillForm"));
246
246
 
247
- var _CreateEvent = _interopRequireDefault(require("./stories/Events/CreateEvent/CreateEvent"));
247
+ var _CreateEvent = _interopRequireDefault(require("./stories/Forms/CreateEvent/CreateEvent"));
248
248
 
249
- var _Event = _interopRequireDefault(require("./stories/Events/Event/Event"));
249
+ var _ViewEvent = _interopRequireDefault(require("./stories/Spaces/ViewEvent/ViewEvent"));
250
250
 
251
- var _EventsList = _interopRequireDefault(require("./stories/Events/EventsList/EventsList"));
251
+ var _EventsList = _interopRequireDefault(require("./stories/Spaces/EventsList/EventsList"));
252
252
 
253
- var _CreateFolder = _interopRequireDefault(require("./stories/Library/CreateFolder/CreateFolder"));
253
+ var _CreateFolder = _interopRequireDefault(require("./stories/Forms/CreateFolder/CreateFolder"));
254
254
 
255
- var _Folders = _interopRequireDefault(require("./stories/Library/Folders/Folders"));
255
+ var _ViewFolders = _interopRequireDefault(require("./stories/Spaces/ViewFolders/ViewFolders"));
256
256
 
257
- var _Notes = _interopRequireDefault(require("./stories/Library/Notes/Notes"));
257
+ var _NotesList = _interopRequireDefault(require("./stories/Spaces/NotesList/NotesList"));
258
258
 
259
- var _ViewNote = _interopRequireDefault(require("./stories/Library/ViewNote/ViewNote"));
259
+ var _ViewNote = _interopRequireDefault(require("./stories/Spaces/ViewNote/ViewNote"));
260
260
 
261
- var _AddSong = _interopRequireDefault(require("./stories/Forms/AddSong/AddSong"));
261
+ var _CreateSong = _interopRequireDefault(require("./stories/Forms/CreateSong/CreateSong"));
262
262
 
263
263
  var _CreateMusicAlbum = _interopRequireDefault(require("./stories/Forms/CreateMusicAlbum/CreateMusicAlbum"));
264
264
 
265
- var _ViewAlbum = _interopRequireDefault(require("./stories/Music Album/ViewAlbum/ViewAlbum"));
265
+ var _ViewMusicAlbumList = _interopRequireDefault(require("./stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList"));
266
266
 
267
- var _ViewAlbums = _interopRequireDefault(require("./stories/Music Album/ViewAlbums/ViewAlbums"));
267
+ var _ViewMusicAlbums = _interopRequireDefault(require("./stories/Spaces/ViewMusicAlbums/ViewMusicAlbums"));
268
268
 
269
269
  var _CreateAlbum = _interopRequireDefault(require("./stories/Forms/CreateAlbum/CreateAlbum"));
270
270
 
271
271
  var _AddPhoto = _interopRequireDefault(require("./stories/Forms/AddPhoto/AddPhoto"));
272
272
 
273
- var _ViewAlbum2 = _interopRequireDefault(require("./stories/Photo Album/ViewAlbum/ViewAlbum"));
273
+ var _ViewPhotoAlbumList = _interopRequireDefault(require("./stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList"));
274
274
 
275
- var _ViewAlbums2 = _interopRequireDefault(require("./stories/Photo Album/ViewAlbums/ViewAlbums"));
275
+ var _ViewPhotoAlbums = _interopRequireDefault(require("./stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums"));
276
276
 
277
277
  var _BaseMaterial = _interopRequireDefault(require("./stories/Containers/BaseMaterial"));
278
278
 
@@ -304,8 +304,8 @@ var _CreateVideoAlbum = _interopRequireDefault(require("./stories/Forms/CreateVi
304
304
 
305
305
  var _AddVideo = _interopRequireDefault(require("./stories/Forms/AddVideo/AddVideo"));
306
306
 
307
- var _AlbumsGallery = _interopRequireDefault(require("./stories/VideoAlbum/AlbumsGallery/AlbumsGallery"));
307
+ var _ViewVideoAlbums = _interopRequireDefault(require("./stories/Spaces/ViewVideoAlbums/ViewVideoAlbums"));
308
308
 
309
- var _VideoSpace = _interopRequireDefault(require("./stories/VideoAlbum/VideoSpace/VideoSpace"));
309
+ var _ViewVideo = _interopRequireDefault(require("./stories/Spaces/ViewVideo/ViewVideo"));
310
310
 
311
- var _ViewAlbum3 = _interopRequireDefault(require("./stories/VideoAlbum/ViewAlbum/ViewAlbum"));
311
+ var _ViewVideoAlbumList = _interopRequireDefault(require("./stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList"));
@@ -35,7 +35,7 @@ var _Sections = _interopRequireDefault(require("../Sections/Sections"));
35
35
 
36
36
  var _templateObject;
37
37
 
38
- var _excluded = ["data", "users", "title", "backgroundColor"];
38
+ var _excluded = ["data", "users", "title", "backgroundColor", "community"];
39
39
 
40
40
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
41
 
@@ -52,6 +52,7 @@ var Chat = function Chat(_ref) {
52
52
  users = _ref.users,
53
53
  title = _ref.title,
54
54
  backgroundColor = _ref.backgroundColor,
55
+ community = _ref.community,
55
56
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
56
57
 
57
58
  var _useState = (0, _react.useState)(false),
@@ -60,6 +61,7 @@ var Chat = function Chat(_ref) {
60
61
  setShowConfigModal = _useState2[1];
61
62
 
62
63
  var _useState3 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(Chat, {
64
+ preview: true,
63
65
  users: users,
64
66
  data: data
65
67
  })),
@@ -68,8 +70,8 @@ var Chat = function Chat(_ref) {
68
70
  setCenterContext = _useState4[1];
69
71
 
70
72
  var formChanged = function formChanged(values) {
71
- console.log('context changed');
72
73
  setCenterContext( /*#__PURE__*/_react.default.createElement(Chat, Object.assign({
74
+ preview: true,
73
75
  users: users,
74
76
  data: data
75
77
  }, values)));
@@ -81,14 +83,17 @@ var Chat = function Chat(_ref) {
81
83
  }, {
82
84
  title: 'Context',
83
85
  id: 'community'
84
- }];
85
- var sections = [{
86
- title: 'Styles',
87
- data: [{
88
- title: 'Styling',
89
- id: 'styling'
90
- }]
91
- }];
86
+ }]; // let sections = [
87
+ // {
88
+ // title: 'Styles',
89
+ // data: [
90
+ // {
91
+ // title: 'Styling',
92
+ // id: 'styling'
93
+ // }
94
+ // ]
95
+ // }
96
+ // ]
92
97
 
93
98
  var onIconClicked = function onIconClicked(action) {
94
99
  if (!props.preview) {
@@ -103,6 +108,11 @@ var Chat = function Chat(_ref) {
103
108
  }
104
109
  };
105
110
 
111
+ var cancelConfig = function cancelConfig() {
112
+ setShowConfigModal(false);
113
+ localStorage.removeItem('formStyles');
114
+ };
115
+
106
116
  return /*#__PURE__*/_react.default.createElement(Container, {
107
117
  backgroundColor: backgroundColor
108
118
  }, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
@@ -116,29 +126,11 @@ var Chat = function Chat(_ref) {
116
126
  users: users
117
127
  }), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
118
128
  modalIsOpen: showConfigModal,
119
- closeModal: function closeModal() {
120
- return setShowConfigModal(false);
121
- },
129
+ closeModal: cancelConfig,
122
130
  exitModalButton: function exitModalButton(e) {
123
131
  return /*#__PURE__*/_react.default.createElement("div", null);
124
- }
125
- }, /*#__PURE__*/_react.default.createElement(_Sections.default, {
126
- sections: sections,
127
- backgroundColor: 'white',
128
- sectionHeaderStyles: {
129
- titleColor: 'white',
130
- headerBackground: 'transparent'
131
132
  },
132
- customCardStyles: {
133
- cardPadding: 6,
134
- cardTitleFontSize: 15,
135
- cardBackgroundColor: '#2c2c2c',
136
- cardTitleColor: 'white',
137
- onHoverBackgroundColor: '#555555',
138
- controlsStyles: {
139
- showOnHover: true
140
- }
141
- }
133
+ preview: true
142
134
  }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
143
135
  title: "Chat Config",
144
136
  tabs: tabs,
@@ -154,8 +146,9 @@ var Chat = function Chat(_ref) {
154
146
  id: "preview"
155
147
  }), /*#__PURE__*/_react.default.createElement(_Community.default, {
156
148
  center: centerContext,
149
+ community: community,
157
150
  id: "community"
158
- })))));
151
+ }))));
159
152
  };
160
153
 
161
154
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n background-color: ", ";\n"])), function (_ref2) {
@@ -17,7 +17,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
17
17
 
18
18
  var _reactRedux = require("react-redux");
19
19
 
20
- var _store = require("../store/store");
20
+ var actions = _interopRequireWildcard(require("../store/store"));
21
21
 
22
22
  var _Navbar = _interopRequireDefault(require("../Navbar/Navbar"));
23
23
 
@@ -33,29 +33,29 @@ var _BaseMaterial = _interopRequireDefault(require("../Containers/BaseMaterial")
33
33
 
34
34
  var _WidgetContainer = _interopRequireDefault(require("../Reusable Components/WidgetContainer/WidgetContainer"));
35
35
 
36
- var _Chat = _interopRequireDefault(require("../Chat/Chat"));
36
+ var _Chat = _interopRequireDefault(require("../Spaces/Chat/Chat"));
37
37
 
38
- var _Event = _interopRequireDefault(require("../Events/Event/Event"));
38
+ var _Event = _interopRequireDefault(require("../Spaces/ViewEvent/Event"));
39
39
 
40
- var _EventsList = _interopRequireDefault(require("../Events/EventsList/EventsList"));
40
+ var _EventsList = _interopRequireDefault(require("../Spaces/EventsList/EventsList"));
41
41
 
42
- var _Folders = _interopRequireDefault(require("../Library/Folders/Folders"));
42
+ var _ViewFolders = _interopRequireDefault(require("../Spaces/ViewFolders/ViewFolders"));
43
43
 
44
- var _Notes = _interopRequireDefault(require("../Library/Notes/Notes"));
44
+ var _NotesList = _interopRequireDefault(require("../Spaces/NotesList/NotesList"));
45
45
 
46
- var _ViewAlbum = _interopRequireDefault(require("../Music Album/ViewAlbum/ViewAlbum"));
46
+ var _ViewMusicAlbumList = _interopRequireDefault(require("../Spaces/ViewMusicAlbumList/ViewMusicAlbumList"));
47
47
 
48
- var _ViewAlbums = _interopRequireDefault(require("../Music Album/ViewAlbums/ViewAlbums"));
48
+ var _ViewMusicAlbums = _interopRequireDefault(require("../Spaces/ViewMusicAlbums/ViewMusicAlbums"));
49
49
 
50
- var _ViewAlbum2 = _interopRequireDefault(require("../Photo Album/ViewAlbum/ViewAlbum"));
50
+ var _ViewPhotoAlbumList = _interopRequireDefault(require("../Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList"));
51
51
 
52
- var _ViewAlbums2 = _interopRequireDefault(require("../Photo Album/ViewAlbums/ViewAlbums"));
52
+ var _ViewPhotoAlbums = _interopRequireDefault(require("../Spaces/ViewPhotoAlbums/ViewPhotoAlbums"));
53
53
 
54
- var _AlbumsGallery = _interopRequireDefault(require("../VideoAlbum/AlbumsGallery/AlbumsGallery"));
54
+ var _ViewVideoAlbums = _interopRequireDefault(require("../Spaces/ViewVideoAlbums/ViewVideoAlbums"));
55
55
 
56
- var _ViewAlbum3 = _interopRequireDefault(require("../VideoAlbum/ViewAlbum/ViewAlbum"));
56
+ var _ViewVideoAlbumList = _interopRequireDefault(require("../Spaces/ViewVideoAlbumList/ViewVideoAlbumList"));
57
57
 
58
- var _VideoSpace = _interopRequireDefault(require("../VideoAlbum/VideoSpace/VideoSpace"));
58
+ var _ViewVideo = _interopRequireDefault(require("../Spaces/ViewVideo/ViewVideo"));
59
59
 
60
60
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
61
61
 
@@ -77,19 +77,16 @@ var Community = function Community(props) {
77
77
  });
78
78
  var spacesWidget = (0, _reactRedux.useSelector)(function (state) {
79
79
  return state.communities.spacesListWidget.widgetSpacesList;
80
- });
81
- var dispatch = (0, _reactRedux.useDispatch)();
80
+ }); // const dispatch = useDispatch();
82
81
 
83
- var onAddEvent = function onAddEvent(event) {
84
- dispatch((0, _store.addEvent)(event));
85
- };
82
+ var onAddEvent = function onAddEvent(event) {// dispatch(actions.addEvent(event))
83
+ }; // console.log(community)
86
84
 
87
- console.log(space);
88
85
 
89
86
  var eventIconClicked = function eventIconClicked(action, index) {
90
87
  switch (action) {
91
88
  case 'delete':
92
- dispatch((0, _store.deleteEvent)(index));
89
+ // dispatch(actions.addEvent)
93
90
  break;
94
91
 
95
92
  default:
@@ -106,25 +103,48 @@ var Community = function Community(props) {
106
103
  widgetProps: (0, _objectSpread2.default)({
107
104
  listTitle: spacesWidget.listTitle,
108
105
  spaces: spacesWidget.spaces,
109
- cardClicked: switchSpace,
110
- headerStyles: spacesWidget.styles.header
111
- }, spacesWidget.styles.body)
106
+ cardClicked: switchSpace
107
+ }, spacesWidget.styles)
112
108
  })), /*#__PURE__*/_react.default.createElement(_Center.default, null, {
113
- 'chat': /*#__PURE__*/_react.default.createElement(_Chat.default, Object.assign({}, space.spaceProps, space.styles)),
114
- 'event': /*#__PURE__*/_react.default.createElement(_Event.default, Object.assign({}, space.spaceProps, space.styles)),
109
+ 'chat': /*#__PURE__*/_react.default.createElement(_Chat.default, Object.assign({
110
+ community: community
111
+ }, space.spaceProps, space.styles)),
112
+ 'event': /*#__PURE__*/_react.default.createElement(_Event.default, Object.assign({
113
+ community: community
114
+ }, space.spaceProps, space.styles)),
115
115
  'events_list': /*#__PURE__*/_react.default.createElement(_EventsList.default, Object.assign({
116
+ actions: actions,
117
+ community: community,
116
118
  cardIconClicked: eventIconClicked,
117
119
  onAddEvent: onAddEvent
118
120
  }, space.spaceProps, space.styles)),
119
- 'folders': /*#__PURE__*/_react.default.createElement(_Folders.default, Object.assign({}, space.spaceProps, space.styles)),
120
- 'notes': /*#__PURE__*/_react.default.createElement(_Notes.default, Object.assign({}, space.spaceProps, space.styles)),
121
- 'music_album': /*#__PURE__*/_react.default.createElement(_ViewAlbum.default, Object.assign({}, space.spaceProps, space.styles)),
122
- 'music_albums': /*#__PURE__*/_react.default.createElement(_ViewAlbums.default, Object.assign({}, space.spaceProps, space.styles)),
123
- 'photo_album': /*#__PURE__*/_react.default.createElement(_ViewAlbum2.default, Object.assign({}, space.spaceProps, space.styles)),
124
- 'photo_albums': /*#__PURE__*/_react.default.createElement(_ViewAlbums2.default, Object.assign({}, space.spaceProps, space.styles)),
125
- 'video_albums': /*#__PURE__*/_react.default.createElement(_AlbumsGallery.default, Object.assign({}, space.spaceProps, space.styles)),
126
- 'video_album': /*#__PURE__*/_react.default.createElement(_ViewAlbum3.default, Object.assign({}, space.spaceProps, space.styles)),
127
- 'video_space': /*#__PURE__*/_react.default.createElement(_VideoSpace.default, Object.assign({}, space.spaceProps, space.styles))
121
+ 'folders': /*#__PURE__*/_react.default.createElement(_ViewFolders.default, Object.assign({
122
+ community: community
123
+ }, space.spaceProps, space.styles)),
124
+ 'notes': /*#__PURE__*/_react.default.createElement(_NotesList.default, Object.assign({
125
+ community: community
126
+ }, space.spaceProps, space.styles)),
127
+ 'music_album': /*#__PURE__*/_react.default.createElement(_ViewMusicAlbumList.default, Object.assign({
128
+ community: community
129
+ }, space.spaceProps, space.styles)),
130
+ 'music_albums': /*#__PURE__*/_react.default.createElement(_ViewMusicAlbums.default, Object.assign({
131
+ community: community
132
+ }, space.spaceProps, space.styles)),
133
+ 'photo_album': /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbumList.default, Object.assign({
134
+ community: community
135
+ }, space.spaceProps, space.styles)),
136
+ 'photo_albums': /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbums.default, Object.assign({
137
+ community: community
138
+ }, space.spaceProps, space.styles)),
139
+ 'video_albums': /*#__PURE__*/_react.default.createElement(_ViewVideoAlbums.default, Object.assign({
140
+ community: community
141
+ }, space.spaceProps, space.styles)),
142
+ 'video_album': /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, Object.assign({
143
+ community: community
144
+ }, space.spaceProps, space.styles)),
145
+ 'video_space': /*#__PURE__*/_react.default.createElement(_ViewVideo.default, Object.assign({
146
+ community: community
147
+ }, space.spaceProps, space.styles))
128
148
  }[spaceType]), /*#__PURE__*/_react.default.createElement(_Right.default, null, space.widgets && space.widgets.map(function (widget) {
129
149
  return /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
130
150
  widgetType: widget.widgetType,
@@ -33,16 +33,15 @@ var _WidgetContainer = _interopRequireDefault(require("../../Reusable Components
33
33
 
34
34
  var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
35
35
 
36
- var _styling = _interopRequireDefault(require("../../styling.json"));
37
-
38
36
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
39
37
 
40
- var _excluded = ["cover", "title", "date", "disc", "backgroundColor", "titleColor", "titleSize", "dateColor", "dateSize", "discColor", "discSize", "headerStyles"];
38
+ var _excluded = ["cover", "title", "date", "disc", "backgroundColor", "titleColor", "titleSize", "dateColor", "dateSize", "discColor", "discSize", "headerStyles", "community"];
41
39
 
42
40
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
43
41
 
44
42
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
45
43
 
44
+ // import styles from '../../styling.json'
46
45
  var listControls = [{
47
46
  icon: /*#__PURE__*/_react.default.createElement(_bs.BsGear, null),
48
47
  action: 'config',
@@ -62,6 +61,7 @@ var Event = function Event(_ref) {
62
61
  discColor = _ref.discColor,
63
62
  discSize = _ref.discSize,
64
63
  headerStyles = _ref.headerStyles,
64
+ community = _ref.community,
65
65
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
66
66
 
67
67
  var _useState = (0, _react.useState)(false),
@@ -70,6 +70,7 @@ var Event = function Event(_ref) {
70
70
  setShowConfigModal = _useState2[1];
71
71
 
72
72
  var _useState3 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(Event, {
73
+ preview: true,
73
74
  title: title,
74
75
  cover: cover,
75
76
  date: date,
@@ -81,6 +82,7 @@ var Event = function Event(_ref) {
81
82
 
82
83
  var formChanged = function formChanged(values) {
83
84
  setCenterContext( /*#__PURE__*/_react.default.createElement(Event, Object.assign({
85
+ preview: true,
84
86
  title: title,
85
87
  cover: cover,
86
88
  date: date,
@@ -116,6 +118,11 @@ var Event = function Event(_ref) {
116
118
  }
117
119
  };
118
120
 
121
+ var cancelConfig = function cancelConfig() {
122
+ setShowConfigModal(false);
123
+ localStorage.removeItem('formStyles');
124
+ };
125
+
119
126
  return /*#__PURE__*/_react.default.createElement(Container, {
120
127
  backgroundColor: backgroundColor
121
128
  }, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, Object.assign({
@@ -135,9 +142,7 @@ var Event = function Event(_ref) {
135
142
  discSize: discSize
136
143
  }, disc)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
137
144
  modalIsOpen: showConfigModal,
138
- closeModal: function closeModal() {
139
- return setShowConfigModal(false);
140
- },
145
+ closeModal: cancelConfig,
141
146
  exitModalButton: function exitModalButton(e) {
142
147
  return /*#__PURE__*/_react.default.createElement("div", null);
143
148
  }
@@ -156,6 +161,8 @@ var Event = function Event(_ref) {
156
161
  id: "preview"
157
162
  }), /*#__PURE__*/_react.default.createElement(_Community.default, {
158
163
  center: centerContext,
164
+ community: community,
165
+ preview: true,
159
166
  id: "community"
160
167
  }))));
161
168
  };
@@ -29,10 +29,6 @@ var _CreateEvent = _interopRequireDefault(require("../CreateEvent/CreateEvent"))
29
29
 
30
30
  var _EventsPreview = _interopRequireDefault(require("../../PreviewComponents/EventsPreview/EventsPreview"));
31
31
 
32
- var _EventsList = require("./EventsList.stories");
33
-
34
- var _Events = require("../../Pages/Events/Events/Events.stories");
35
-
36
32
  var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
37
33
 
38
34
  var _Sections = _interopRequireDefault(require("../../Sections/Sections"));
@@ -41,7 +37,7 @@ var _Community = _interopRequireDefault(require("../../Reusable Components/Commu
41
37
 
42
38
  var _templateObject;
43
39
 
44
- var _excluded = ["events"];
40
+ var _excluded = ["events", "community"];
45
41
 
46
42
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
47
43
 
@@ -64,6 +60,7 @@ var cardControls = [{
64
60
 
65
61
  var EventsList = function EventsList(_ref) {
66
62
  var events = _ref.events,
63
+ community = _ref.community,
67
64
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
68
65
 
69
66
  var _useState = (0, _react.useState)(false),
@@ -76,15 +73,17 @@ var EventsList = function EventsList(_ref) {
76
73
  showConfigModal = _useState4[0],
77
74
  setShowConfigModal = _useState4[1];
78
75
 
79
- var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(EventsList, {
76
+ var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(EventsList, Object.assign({
77
+ preview: true,
80
78
  events: events
81
- })),
79
+ }, props))),
82
80
  _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
83
81
  centerContext = _useState6[0],
84
82
  setCenterContext = _useState6[1];
85
83
 
86
84
  var formChanged = function formChanged(values) {
87
85
  setCenterContext( /*#__PURE__*/_react.default.createElement(EventsList, Object.assign({
86
+ preview: true,
88
87
  events: events
89
88
  }, values)));
90
89
  };
@@ -142,6 +141,11 @@ var EventsList = function EventsList(_ref) {
142
141
  props.onAddEvent(event);
143
142
  };
144
143
 
144
+ var cancelConfig = function cancelConfig() {
145
+ setShowConfigModal(false);
146
+ localStorage.removeItem('formStyles');
147
+ };
148
+
145
149
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
146
150
  listTitle: props.title || "My Events",
147
151
  data: events,
@@ -167,14 +171,12 @@ var EventsList = function EventsList(_ref) {
167
171
  cancelHandler: cancelHandler
168
172
  })), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
169
173
  modalIsOpen: showConfigModal,
170
- closeModal: function closeModal() {
171
- return setShowConfigModal(false);
172
- },
174
+ closeModal: cancelConfig,
173
175
  exitModalButton: function exitModalButton(e) {
174
176
  return /*#__PURE__*/_react.default.createElement("div", null);
175
177
  }
176
178
  }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
177
- title: "Event Config",
179
+ title: "Events Config",
178
180
  tabs: tabs
179
181
  }, /*#__PURE__*/_react.default.createElement(_EventsPreview.default, {
180
182
  componentProps: {
@@ -186,6 +188,7 @@ var EventsList = function EventsList(_ref) {
186
188
  id: "preview"
187
189
  }), /*#__PURE__*/_react.default.createElement(_Community.default, {
188
190
  center: centerContext,
191
+ community: community,
189
192
  id: "community"
190
193
  }))));
191
194
  };
@@ -45,11 +45,12 @@ var AddPhoto = function AddPhoto(_ref) {
45
45
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
46
46
  var initialValues = {
47
47
  img: null,
48
- title: '',
49
- description: ''
48
+ title: "",
49
+ description: ""
50
50
  };
51
51
  var formSchema = Yup.object().shape({
52
- title: Yup.string().required("Required")
52
+ title: Yup.string().required("Your photo must have a title"),
53
+ description: Yup.string().required("You must also have a description for your photo!")
53
54
  });
54
55
  var sections = [{
55
56
  title: "Upload Photo",
@@ -69,7 +70,7 @@ var AddPhoto = function AddPhoto(_ref) {
69
70
  var onCreate = function onCreate(values) {
70
71
  var photo = (0, _objectSpread2.default)({}, values);
71
72
  var date = new Date();
72
- photo.date = date.toISOString().split('T')[0];
73
+ photo.date = date.toISOString().split("T")[0];
73
74
  props.saveHandler(photo);
74
75
  };
75
76
 
@@ -89,12 +90,12 @@ var AddPhoto = function AddPhoto(_ref) {
89
90
  cancelHandler: cancelHandler
90
91
  }, (0, _defineProperty2.default)(_Object$assign, "headerStyles", {
91
92
  padding: 10,
92
- headerBackground: 'black',
93
- titleColor: '#ffff'
93
+ headerBackground: "black",
94
+ titleColor: "#ffff"
94
95
  }), (0, _defineProperty2.default)(_Object$assign, "sectionPadding", 10), (0, _defineProperty2.default)(_Object$assign, "bodyRowGap", 10), _Object$assign), props.formStyles)));
95
96
  };
96
97
 
97
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
98
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)([""])));
98
99
 
99
100
  AddPhoto.defaultProps = {};
100
101
  var _default = AddPhoto;