@mohamed-karawia/library 0.1.21 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +26 -26
- package/dist/stories/Chat/Chat.js +24 -31
- package/dist/stories/Community/Community.js +54 -34
- package/dist/stories/Events/Event/Event.js +12 -4
- package/dist/stories/Events/EventsList/EventsList.js +14 -7
- package/dist/stories/Forms/AddPhoto/AddPhoto.js +8 -7
- package/dist/stories/Forms/CreateEvent/CreateEvent.js +115 -0
- package/dist/stories/Forms/CreateFolder/CreateFolder.js +87 -0
- package/dist/stories/Forms/CreateSong/CreateSong.js +98 -0
- package/dist/stories/Library/Folders/Folders.js +27 -17
- package/dist/stories/Library/Notes/Notes.js +29 -18
- package/dist/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.js +38 -0
- package/dist/stories/Modals/AddPhotoModal/AddPhotoModal.js +40 -0
- package/dist/stories/Modals/AddSongModal/AddSongModal.js +41 -0
- package/dist/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.js +41 -0
- package/dist/stories/Modals/AddVideoModal/AddVideoModal.js +39 -0
- package/dist/stories/Modals/ChatConfigModal/ChatContifgModal.js +93 -0
- package/dist/stories/Modals/CreateEventModal/CreateEventModal.js +42 -0
- package/dist/stories/Modals/CreateFolderModal/CreateFolderModal.js +36 -0
- package/dist/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.js +41 -0
- package/dist/stories/Modals/CreateNoteModal/CreateNoteModal.js +42 -0
- package/dist/stories/Modals/EventConfigModal/EventConfigModal.js +99 -0
- package/dist/stories/Modals/EventsConfigModal/EventsConfigModal.js +87 -0
- package/dist/stories/Modals/FoldersConfigModal/FoldersConfigModal.js +87 -0
- package/dist/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.js +87 -0
- package/dist/stories/Modals/NotesConfigModal/NotesConfigModal.js +87 -0
- package/dist/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.js +88 -0
- package/dist/stories/Modals/ShowImgModal/ShowImgModal.js +62 -0
- package/dist/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.js +89 -0
- package/dist/stories/Modals/VideoConfigModal/VideoConfigModal.js +99 -0
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +8 -44
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +57 -37
- package/dist/stories/Pages/Chat/Chat.js +1 -1
- package/dist/stories/Pages/Events/Event/Event.js +1 -1
- package/dist/stories/Pages/Events/Events/Events.js +1 -1
- package/dist/stories/Pages/Library/Folders/Library.js +2 -2
- package/dist/stories/Pages/Library/Notes/Notes.js +2 -2
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +2 -2
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -2
- package/dist/stories/Pages/Photos/Album/Album.js +2 -2
- package/dist/stories/Pages/Photos/Albums/Albums.js +2 -2
- package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -2
- package/dist/stories/Pages/Video/VideoAlbum/Video.js +2 -2
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +26 -16
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +11 -4
- package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +7 -5
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +7 -5
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +7 -5
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +7 -5
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +8 -7
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +7 -5
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +7 -5
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +7 -5
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +7 -5
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +7 -5
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +7 -5
- package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
- package/dist/stories/Reusable Components/Community/Community.js +12 -34
- package/dist/stories/Reusable Components/Sections/Sections.js +67 -0
- package/dist/stories/Spaces/Chat/Chat.js +103 -0
- package/dist/stories/Spaces/EventsList/EventsList.js +140 -0
- package/dist/stories/Spaces/NotesList/NotesList.js +144 -0
- package/dist/stories/Spaces/ViewDetailedPhoto/ViewDetailedPhoto.js +24 -0
- package/dist/stories/Spaces/ViewEvent/Event.js +146 -0
- package/dist/stories/Spaces/ViewFolders/ViewFolders.js +136 -0
- package/dist/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.js +136 -0
- package/dist/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.js +130 -0
- package/dist/stories/Spaces/ViewNote/ViewNote.js +27 -0
- package/dist/stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.js +231 -0
- package/dist/stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums.js +131 -0
- package/dist/stories/Spaces/ViewVideo/ViewVideo.js +169 -0
- package/dist/stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList.js +157 -0
- package/dist/stories/Spaces/ViewVideoAlbums/ViewVideoAlbums.js +164 -0
- package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +11 -4
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +17 -6
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +24 -25
- package/dist/stories/Widgets/VideoPlayer/VideoPlayer.js +235 -0
- package/dist/stories/helpers/util.js +24 -24
- package/dist/stories/store/actions/actions.js +16 -0
- package/dist/stories/store/communities.js +27 -29
- package/dist/stories/store/community.js +941 -0
- package/dist/stories/store/store.js +9 -4
- package/package.json +1 -1
- package/src/index.js +16 -16
- package/src/stories/Community/Community.jsx +31 -32
- package/src/stories/Forms/AddPhoto/AddPhoto.jsx +72 -72
- package/src/stories/{Events → Forms}/CreateEvent/CreateEvent.jsx +5 -1
- package/src/stories/{Library → Forms}/CreateFolder/CreateFolder.jsx +0 -0
- package/src/stories/Forms/{AddSong/AddSong.jsx → CreateSong/CreateSong.jsx} +0 -0
- package/src/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.jsx +27 -0
- package/src/stories/Modals/AddPhotoModal/AddPhotoModal.jsx +29 -0
- package/src/stories/Modals/AddSongModal/AddSongModal.jsx +37 -0
- package/src/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.jsx +38 -0
- package/src/stories/Modals/AddVideoModal/AddVideoModal.jsx +35 -0
- package/src/stories/Modals/ChatConfigModal/ChatContifgModal.jsx +77 -0
- package/src/stories/Modals/CreateEventModal/CreateEventModal.jsx +30 -0
- package/src/stories/Modals/CreateFolderModal/CreateFolderModal.jsx +39 -0
- package/src/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.jsx +37 -0
- package/src/stories/Modals/CreateNoteModal/CreateNoteModal.jsx +43 -0
- package/src/stories/Modals/EventConfigModal/EventConfigModal.jsx +74 -0
- package/src/stories/Modals/EventsConfigModal/EventsConfigModal.jsx +67 -0
- package/src/stories/Modals/FoldersConfigModal/FoldersConfigModal.jsx +66 -0
- package/src/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.jsx +69 -0
- package/src/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.jsx +73 -0
- package/src/stories/Modals/NotesConfigModal/NotesConfigModal.jsx +65 -0
- package/src/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.jsx +71 -0
- package/src/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.jsx +69 -0
- package/src/stories/Modals/ShowImgModal/ShowImgModal.jsx +87 -0
- package/src/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.jsx +67 -0
- package/src/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.jsx +67 -0
- package/src/stories/Modals/VideoConfigModal/VideoConfigModal.jsx +78 -0
- package/src/stories/Pages/Chat/Chat.jsx +1 -1
- package/src/stories/Pages/Events/Event/Event.jsx +1 -1
- package/src/stories/Pages/Events/Events/Events.jsx +1 -1
- package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
- package/src/stories/Pages/Library/Notes/Notes.jsx +1 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +1 -1
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +1 -1
- package/src/stories/Pages/Photos/Album/Album.jsx +1 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +1 -1
- package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +1 -1
- package/src/stories/Pages/Video/VideoAlbum/Video.jsx +1 -1
- package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +106 -104
- package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +7 -5
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +8 -6
- package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +6 -4
- package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +13 -11
- package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +36 -34
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +18 -16
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +7 -5
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +8 -6
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +10 -8
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +7 -5
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +7 -5
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +7 -5
- package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
- package/src/stories/Reusable Components/Community/Community.jsx +10 -33
- package/src/stories/{Sections/Sections.jsx → Reusable Components/Sections/Sections.jsx } +1 -1
- package/src/stories/Spaces/Chat/Chat.jsx +77 -0
- package/src/stories/Spaces/EventsList/EventsList.jsx +118 -0
- package/src/stories/Spaces/NotesList/NotesList.jsx +125 -0
- package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
- package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +17 -73
- package/src/stories/Spaces/ViewFolders/ViewFolders.jsx +122 -0
- package/src/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.jsx +118 -0
- package/src/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.jsx +108 -0
- package/src/stories/{Library → Spaces}/ViewNote/ViewNote.jsx +0 -0
- package/src/stories/{Photo Album/ViewAlbum/ViewAlbum.jsx → Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.jsx} +48 -134
- package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +22 -54
- package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +21 -47
- package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +31 -78
- package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +20 -51
- package/src/stories/{VideoAlbum → Widgets}/VideoPlayer/VideoPlayer.jsx +0 -0
- package/src/stories/helpers/util.js +13 -13
- package/src/stories/store/actions/actions.js +7 -0
- package/src/stories/store/{communities.js → community.js} +27 -29
- package/src/stories/store/store.js +3 -4
- package/src/stories/Chat/Chat.jsx +0 -148
- package/src/stories/Events/EventsList/EventsList.jsx +0 -180
- package/src/stories/Library/Folders/Folders.jsx +0 -187
- package/src/stories/Library/Notes/Notes.jsx +0 -161
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -216
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -152
@@ -0,0 +1,99 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _ViewVideo = _interopRequireDefault(require("../../Spaces/ViewVideo/ViewVideo"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _VideoPreview = _interopRequireDefault(require("../../PreviewComponents/VideoPreview/VideoPreview"));
|
21
|
+
|
22
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
23
|
+
|
24
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
25
|
+
|
26
|
+
var _excluded = ["showConfigModal", "cancelConfig", "community", "videoSrc", "title", "discription", "date", "users", "comments"];
|
27
|
+
|
28
|
+
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); }
|
29
|
+
|
30
|
+
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; }
|
31
|
+
|
32
|
+
var VideoConfigModal = function VideoConfigModal(_ref) {
|
33
|
+
var showConfigModal = _ref.showConfigModal,
|
34
|
+
cancelConfig = _ref.cancelConfig,
|
35
|
+
community = _ref.community,
|
36
|
+
videoSrc = _ref.videoSrc,
|
37
|
+
title = _ref.title,
|
38
|
+
discription = _ref.discription,
|
39
|
+
date = _ref.date,
|
40
|
+
users = _ref.users,
|
41
|
+
comments = _ref.comments,
|
42
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
43
|
+
|
44
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideo.default, {
|
45
|
+
users: users,
|
46
|
+
preview: true,
|
47
|
+
videoSrc: videoSrc,
|
48
|
+
comments: comments
|
49
|
+
})),
|
50
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
51
|
+
centerContext = _useState2[0],
|
52
|
+
setCenterContext = _useState2[1];
|
53
|
+
|
54
|
+
var formChanged = function formChanged(values) {
|
55
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideo.default, Object.assign({
|
56
|
+
users: users,
|
57
|
+
preview: true,
|
58
|
+
videoSrc: videoSrc,
|
59
|
+
comments: comments
|
60
|
+
}, values)));
|
61
|
+
};
|
62
|
+
|
63
|
+
var tabs = [{
|
64
|
+
title: 'New',
|
65
|
+
id: 'preview'
|
66
|
+
}, {
|
67
|
+
title: 'Context',
|
68
|
+
id: 'community'
|
69
|
+
}];
|
70
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
71
|
+
modalIsOpen: showConfigModal,
|
72
|
+
closeModal: cancelConfig,
|
73
|
+
exitModalButton: function exitModalButton(e) {
|
74
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
75
|
+
}
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
77
|
+
title: "Video Space Config",
|
78
|
+
tabs: tabs,
|
79
|
+
id: "styling"
|
80
|
+
}, /*#__PURE__*/_react.default.createElement(_VideoPreview.default, {
|
81
|
+
componentProps: {
|
82
|
+
title: title,
|
83
|
+
discription: discription,
|
84
|
+
comments: comments,
|
85
|
+
date: date,
|
86
|
+
preview: true
|
87
|
+
},
|
88
|
+
formChanged: formChanged,
|
89
|
+
id: "preview"
|
90
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
91
|
+
center: centerContext,
|
92
|
+
community: community,
|
93
|
+
id: "community"
|
94
|
+
})));
|
95
|
+
};
|
96
|
+
|
97
|
+
VideoConfigModal.defaultProps = {};
|
98
|
+
var _default = VideoConfigModal;
|
99
|
+
exports.default = _default;
|
@@ -41,7 +41,7 @@ var _constatnts = require("../../Pages/ViewWorld/constatnts");
|
|
41
41
|
|
42
42
|
var _templateObject;
|
43
43
|
|
44
|
-
var _excluded = ["album", "cardBackgroundColor", "songTitleColor"];
|
44
|
+
var _excluded = ["album", "cardBackgroundColor", "songTitleColor", "community"];
|
45
45
|
|
46
46
|
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
47
|
|
@@ -67,6 +67,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
67
67
|
var album = _ref.album,
|
68
68
|
cardBackgroundColor = _ref.cardBackgroundColor,
|
69
69
|
songTitleColor = _ref.songTitleColor,
|
70
|
+
community = _ref.community,
|
70
71
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
71
72
|
|
72
73
|
var _useState = (0, _react.useState)(false),
|
@@ -80,6 +81,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
80
81
|
setShowConfigModal = _useState4[1];
|
81
82
|
|
82
83
|
var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbum, {
|
84
|
+
preview: true,
|
83
85
|
album: album
|
84
86
|
})),
|
85
87
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
@@ -89,6 +91,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
89
91
|
var formChanged = function formChanged(values) {
|
90
92
|
console.log('context changed');
|
91
93
|
setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbum, Object.assign({
|
94
|
+
preview: true,
|
92
95
|
album: album
|
93
96
|
}, values)));
|
94
97
|
};
|
@@ -174,27 +177,9 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
174
177
|
exitModalButton: function exitModalButton(e) {
|
175
178
|
return /*#__PURE__*/_react.default.createElement("div", null);
|
176
179
|
}
|
177
|
-
}, /*#__PURE__*/_react.default.createElement(_Sections.default, {
|
178
|
-
sections: sections,
|
179
|
-
backgroundColor: 'white',
|
180
|
-
sectionHeaderStyles: {
|
181
|
-
titleColor: 'white',
|
182
|
-
headerBackground: 'transparent'
|
183
|
-
},
|
184
|
-
customCardStyles: {
|
185
|
-
cardPadding: 6,
|
186
|
-
cardTitleFontSize: 15,
|
187
|
-
cardBackgroundColor: '#2c2c2c',
|
188
|
-
cardTitleColor: 'white',
|
189
|
-
onHoverBackgroundColor: '#555555',
|
190
|
-
controlsStyles: {
|
191
|
-
showOnHover: true
|
192
|
-
}
|
193
|
-
}
|
194
180
|
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
195
|
-
title: "
|
196
|
-
tabs: tabs
|
197
|
-
id: "styling"
|
181
|
+
title: "Album Config",
|
182
|
+
tabs: tabs
|
198
183
|
}, /*#__PURE__*/_react.default.createElement(_MusicAlbumPreview.default, {
|
199
184
|
componentProps: {
|
200
185
|
album: album,
|
@@ -204,31 +189,10 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
204
189
|
formChanged: formChanged,
|
205
190
|
id: "preview"
|
206
191
|
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
207
|
-
right: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
208
|
-
widgetType: "music player",
|
209
|
-
widgetProps: {
|
210
|
-
playlist: album,
|
211
|
-
currentSong: 1
|
212
|
-
}
|
213
|
-
}),
|
214
|
-
left: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
215
|
-
widgetType: "spaces-list",
|
216
|
-
widgetProps: {
|
217
|
-
listTitle: 'Your Spaces',
|
218
|
-
type: 'sectioned',
|
219
|
-
spaces: _constatnts.SPACES,
|
220
|
-
cardStyle: 'card-style-3',
|
221
|
-
cardClicked: function cardClicked() {
|
222
|
-
return alert('clicked');
|
223
|
-
} // headerStyles: styles.widgetContainer.header,
|
224
|
-
// sectionHeaderStyles: styles.widgetContainer.body.sectionHeaderStyles,
|
225
|
-
// customCardStyles: styles.widgetContainer.body.customCardStyles,
|
226
|
-
|
227
|
-
}
|
228
|
-
}),
|
229
192
|
center: centerContext,
|
193
|
+
community: community,
|
230
194
|
id: "community"
|
231
|
-
}))))
|
195
|
+
}))));
|
232
196
|
};
|
233
197
|
|
234
198
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
@@ -29,13 +29,15 @@ var _Sections = _interopRequireDefault(require("../../Sections/Sections"));
|
|
29
29
|
|
30
30
|
var _MusicAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview"));
|
31
31
|
|
32
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
33
|
+
|
32
34
|
var _ai = require("react-icons/ai");
|
33
35
|
|
34
36
|
var _bs = require("react-icons/bs");
|
35
37
|
|
36
38
|
var _templateObject;
|
37
39
|
|
38
|
-
var _excluded = ["albums", "
|
40
|
+
var _excluded = ["albums", "community"];
|
39
41
|
|
40
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); }
|
41
43
|
|
@@ -58,8 +60,7 @@ var galleryControls = [{
|
|
58
60
|
|
59
61
|
var ViewAlbums = function ViewAlbums(_ref) {
|
60
62
|
var albums = _ref.albums,
|
61
|
-
|
62
|
-
descColor = _ref.descColor,
|
63
|
+
community = _ref.community,
|
63
64
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
64
65
|
|
65
66
|
var _useState = (0, _react.useState)(false),
|
@@ -72,14 +73,20 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
72
73
|
showConfigModal = _useState4[0],
|
73
74
|
setShowConfigModal = _useState4[1];
|
74
75
|
|
76
|
+
var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbums, {
|
77
|
+
preview: true,
|
78
|
+
albums: albums
|
79
|
+
})),
|
80
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
81
|
+
centerContext = _useState6[0],
|
82
|
+
setCenterContext = _useState6[1];
|
83
|
+
|
75
84
|
var tabs = [{
|
76
85
|
title: 'New',
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
}
|
82
|
-
})
|
86
|
+
id: 'preview'
|
87
|
+
}, {
|
88
|
+
title: 'Context',
|
89
|
+
id: 'community'
|
83
90
|
}];
|
84
91
|
var sections = [{
|
85
92
|
title: 'Styles',
|
@@ -93,17 +100,19 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
93
100
|
}];
|
94
101
|
|
95
102
|
var onHeaderIconClicked = function onHeaderIconClicked(action) {
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
103
|
+
if (!props.preview) {
|
104
|
+
switch (action) {
|
105
|
+
case 'add':
|
106
|
+
setShowModal(true);
|
107
|
+
break;
|
108
|
+
|
109
|
+
case 'config':
|
110
|
+
setShowConfigModal(true);
|
111
|
+
break;
|
112
|
+
|
113
|
+
default:
|
114
|
+
break;
|
115
|
+
}
|
107
116
|
}
|
108
117
|
};
|
109
118
|
|
@@ -111,6 +120,13 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
111
120
|
props.cardIconClicked(action, index);
|
112
121
|
};
|
113
122
|
|
123
|
+
var formChanged = function formChanged(values) {
|
124
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbums, Object.assign({
|
125
|
+
preview: true,
|
126
|
+
albums: albums
|
127
|
+
}, values)));
|
128
|
+
};
|
129
|
+
|
114
130
|
var onAddAlbum = function onAddAlbum(album) {
|
115
131
|
setShowModal(false);
|
116
132
|
props.onAddAlbum(album);
|
@@ -120,6 +136,11 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
120
136
|
setShowModal(false);
|
121
137
|
};
|
122
138
|
|
139
|
+
var cancelConfig = function cancelConfig() {
|
140
|
+
setShowConfigModal(false);
|
141
|
+
localStorage.removeItem('formStyles');
|
142
|
+
};
|
143
|
+
|
123
144
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
124
145
|
galleryTitle: props.title || 'Music Albums',
|
125
146
|
data: albums,
|
@@ -144,27 +165,26 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
144
165
|
cancelBtnText: props.cancelBtnText || "Cancel"
|
145
166
|
})), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
146
167
|
modalIsOpen: showConfigModal,
|
147
|
-
closeModal:
|
148
|
-
return setShowConfigModal(false);
|
149
|
-
},
|
168
|
+
closeModal: cancelConfig,
|
150
169
|
exitModalButton: function exitModalButton(e) {
|
151
170
|
return /*#__PURE__*/_react.default.createElement("div", null);
|
152
171
|
}
|
153
|
-
}, /*#__PURE__*/_react.default.createElement(
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
172
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
173
|
+
title: "Albums Config",
|
174
|
+
tabs: tabs
|
175
|
+
}, /*#__PURE__*/_react.default.createElement(_MusicAlbumsPreview.default, {
|
176
|
+
componentProps: {
|
177
|
+
albums: albums,
|
178
|
+
title: 'Music Albums',
|
179
|
+
preview: true
|
159
180
|
},
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
})));
|
181
|
+
formChanged: formChanged,
|
182
|
+
id: "preview"
|
183
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
184
|
+
center: centerContext,
|
185
|
+
community: community,
|
186
|
+
id: "community"
|
187
|
+
}))));
|
168
188
|
};
|
169
189
|
|
170
190
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
@@ -31,7 +31,7 @@ var _styles = _interopRequireDefault(require("../ViewWorld/styles.json"));
|
|
31
31
|
|
32
32
|
var _constatnts = require("../ViewWorld/constatnts");
|
33
33
|
|
34
|
-
var _Chat = _interopRequireDefault(require("../../Chat/Chat"));
|
34
|
+
var _Chat = _interopRequireDefault(require("../../Spaces/Chat/Chat"));
|
35
35
|
|
36
36
|
var _excluded = ["users", "data"];
|
37
37
|
|
@@ -25,7 +25,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
|
|
25
25
|
|
26
26
|
var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
|
27
27
|
|
28
|
-
var _Event = _interopRequireDefault(require("../../../
|
28
|
+
var _Event = _interopRequireDefault(require("../../../Spaces/ViewEvent/Event"));
|
29
29
|
|
30
30
|
var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
|
31
31
|
|
@@ -27,7 +27,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
|
|
27
27
|
|
28
28
|
var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
|
29
29
|
|
30
|
-
var _EventsList = _interopRequireDefault(require("../../../
|
30
|
+
var _EventsList = _interopRequireDefault(require("../../../Spaces/EventsList/EventsList"));
|
31
31
|
|
32
32
|
var _util = require("../../../helpers/util");
|
33
33
|
|
@@ -27,7 +27,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
|
|
27
27
|
|
28
28
|
var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
|
29
29
|
|
30
|
-
var
|
30
|
+
var _ViewFolders = _interopRequireDefault(require("../../../Spaces/ViewFolders/ViewFolders"));
|
31
31
|
|
32
32
|
var _util = require("../../../helpers/util");
|
33
33
|
|
@@ -120,7 +120,7 @@ var Library = function Library(props) {
|
|
120
120
|
title: "Music Album",
|
121
121
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
122
122
|
hideTitle: true
|
123
|
-
}, /*#__PURE__*/_react.default.createElement(
|
123
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewFolders.default, {
|
124
124
|
folders: folders,
|
125
125
|
folderTitle: "Your Folders",
|
126
126
|
columnsNumber: 3,
|
@@ -27,7 +27,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
|
|
27
27
|
|
28
28
|
var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
|
29
29
|
|
30
|
-
var
|
30
|
+
var _NotesList = _interopRequireDefault(require("../../../Spaces/NotesList/NotesList"));
|
31
31
|
|
32
32
|
var _util = require("../../../helpers/util");
|
33
33
|
|
@@ -116,7 +116,7 @@ var Notes = function Notes(props) {
|
|
116
116
|
title: "Music Album",
|
117
117
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
118
118
|
hideTitle: true
|
119
|
-
}, /*#__PURE__*/_react.default.createElement(
|
119
|
+
}, /*#__PURE__*/_react.default.createElement(_NotesList.default, {
|
120
120
|
onAddNote: onAddNote,
|
121
121
|
cardIconClicked: cardIconClicked,
|
122
122
|
notes: notes,
|
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
|
|
21
21
|
|
22
22
|
var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
|
23
23
|
|
24
|
-
var
|
24
|
+
var _ViewMusicAlbumList = _interopRequireDefault(require("../../../Spaces/ViewMusicAlbumList/ViewMusicAlbumList"));
|
25
25
|
|
26
26
|
var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
|
27
27
|
|
@@ -179,7 +179,7 @@ var Music = function Music(props) {
|
|
179
179
|
title: "Music Album",
|
180
180
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
181
181
|
hideTitle: true
|
182
|
-
}, /*#__PURE__*/_react.default.createElement(
|
182
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewMusicAlbumList.default, {
|
183
183
|
album: album,
|
184
184
|
onAddSong: onAddSong,
|
185
185
|
cardIconClicked: cardIconClicked,
|
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
|
|
21
21
|
|
22
22
|
var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
|
23
23
|
|
24
|
-
var
|
24
|
+
var _ViewMusicAlbums = _interopRequireDefault(require("../../../Spaces/ViewMusicAlbums/ViewMusicAlbums"));
|
25
25
|
|
26
26
|
var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
|
27
27
|
|
@@ -161,7 +161,7 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
161
161
|
title: "Photo Albums",
|
162
162
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
163
163
|
hideTitle: true
|
164
|
-
}, /*#__PURE__*/_react.default.createElement(
|
164
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewMusicAlbums.default, {
|
165
165
|
title: "Music Albums",
|
166
166
|
albums: albums,
|
167
167
|
cardIconClicked: cardIconClicked,
|
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
|
|
21
21
|
|
22
22
|
var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
|
23
23
|
|
24
|
-
var
|
24
|
+
var _ViewPhotoAlbums = _interopRequireDefault(require("../../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums"));
|
25
25
|
|
26
26
|
var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
|
27
27
|
|
@@ -151,7 +151,7 @@ var Album = function Album(props) {
|
|
151
151
|
title: "Photo Albums",
|
152
152
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
153
153
|
hideTitle: true
|
154
|
-
}, /*#__PURE__*/_react.default.createElement(
|
154
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbums.default, {
|
155
155
|
album: album,
|
156
156
|
addPhoto: onAddPhoto,
|
157
157
|
deletePhoto: onDeletePhoto,
|
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
|
|
21
21
|
|
22
22
|
var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
|
23
23
|
|
24
|
-
var
|
24
|
+
var _ViewPhotoAlbums = _interopRequireDefault(require("../../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums"));
|
25
25
|
|
26
26
|
var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
|
27
27
|
|
@@ -162,7 +162,7 @@ var Albums = function Albums(props) {
|
|
162
162
|
title: "Photo Albums",
|
163
163
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
164
164
|
hideTitle: true
|
165
|
-
}, /*#__PURE__*/_react.default.createElement(
|
165
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbums.default, {
|
166
166
|
albums: albums,
|
167
167
|
cardIconClicked: cardIconClicked,
|
168
168
|
onDeleteAlbum: onDeleteAlbum,
|
@@ -29,7 +29,7 @@ var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Compone
|
|
29
29
|
|
30
30
|
var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
|
31
31
|
|
32
|
-
var
|
32
|
+
var _ViewVideo = _interopRequireDefault(require("../../../Spaces/ViewVideo/ViewVideo"));
|
33
33
|
|
34
34
|
var _constatnts = require("../../ViewWorld/constatnts");
|
35
35
|
|
@@ -96,7 +96,7 @@ var DetailedVideo = function DetailedVideo(props) {
|
|
96
96
|
title: "Music Album",
|
97
97
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
98
98
|
hideTitle: true
|
99
|
-
}, /*#__PURE__*/_react.default.createElement(
|
99
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewVideo.default, {
|
100
100
|
iconsColor: "white",
|
101
101
|
backgroundColor: "white",
|
102
102
|
title: "Video Title",
|
@@ -29,7 +29,7 @@ var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Compone
|
|
29
29
|
|
30
30
|
var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
|
31
31
|
|
32
|
-
var
|
32
|
+
var _ViewVideoAlbumList = _interopRequireDefault(require("../../../Spaces/ViewVideoAlbumList/ViewVideoAlbumList"));
|
33
33
|
|
34
34
|
var _constatnts = require("../../ViewWorld/constatnts");
|
35
35
|
|
@@ -190,7 +190,7 @@ var Video = function Video(props) {
|
|
190
190
|
title: "Music Album",
|
191
191
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
192
192
|
hideTitle: true
|
193
|
-
}, /*#__PURE__*/_react.default.createElement(
|
193
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, {
|
194
194
|
album: album,
|
195
195
|
onAddVideo: onAddVideo,
|
196
196
|
onDeleteSong: deleteVideoFromAlbum,
|
@@ -39,7 +39,7 @@ var _bs = require("react-icons/bs");
|
|
39
39
|
|
40
40
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
41
41
|
|
42
|
-
var _excluded = ["album", "cardBackgroundColor", "imgTitleColor", "descColor"];
|
42
|
+
var _excluded = ["album", "cardBackgroundColor", "imgTitleColor", "descColor", "community"];
|
43
43
|
|
44
44
|
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); }
|
45
45
|
|
@@ -65,6 +65,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
65
65
|
cardBackgroundColor = _ref.cardBackgroundColor,
|
66
66
|
imgTitleColor = _ref.imgTitleColor,
|
67
67
|
descColor = _ref.descColor,
|
68
|
+
community = _ref.community,
|
68
69
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
69
70
|
var cardStyles = {
|
70
71
|
cardBackgroundColor: cardBackgroundColor,
|
@@ -114,6 +115,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
114
115
|
setOpenedImg = _useState10[1];
|
115
116
|
|
116
117
|
var _useState11 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbum, {
|
118
|
+
preview: true,
|
117
119
|
album: album
|
118
120
|
})),
|
119
121
|
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
@@ -122,6 +124,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
122
124
|
|
123
125
|
var formChanged = function formChanged(values) {
|
124
126
|
setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbum, Object.assign({
|
127
|
+
preview: true,
|
125
128
|
album: album
|
126
129
|
}, values)));
|
127
130
|
};
|
@@ -152,17 +155,19 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
152
155
|
}, [openedImgIndex, handleUserKeyPress]);
|
153
156
|
|
154
157
|
var onIconClicked = function onIconClicked(action) {
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
158
|
+
if (!props.preview) {
|
159
|
+
switch (action) {
|
160
|
+
case 'add':
|
161
|
+
setShowModal(true);
|
162
|
+
break;
|
163
|
+
|
164
|
+
case 'config':
|
165
|
+
setShowConfigModal(true);
|
166
|
+
break;
|
167
|
+
|
168
|
+
default:
|
169
|
+
break;
|
170
|
+
}
|
166
171
|
}
|
167
172
|
};
|
168
173
|
|
@@ -198,6 +203,11 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
198
203
|
}
|
199
204
|
};
|
200
205
|
|
206
|
+
var cancelConfig = function cancelConfig() {
|
207
|
+
setShowConfigModal(false);
|
208
|
+
localStorage.removeItem('formStyles');
|
209
|
+
};
|
210
|
+
|
201
211
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
202
212
|
galleryTitle: props.title || "Photo Album",
|
203
213
|
data: album,
|
@@ -246,9 +256,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
246
256
|
onClick: nextPhoto
|
247
257
|
}, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineArrowRight, null))), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
248
258
|
modalIsOpen: showConfigModal,
|
249
|
-
closeModal:
|
250
|
-
return setShowConfigModal(false);
|
251
|
-
},
|
259
|
+
closeModal: cancelConfig,
|
252
260
|
exitModalButton: function exitModalButton(e) {
|
253
261
|
return /*#__PURE__*/_react.default.createElement("div", null);
|
254
262
|
}
|
@@ -262,9 +270,11 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
262
270
|
title: props.title || 'Photo Album',
|
263
271
|
preview: true
|
264
272
|
},
|
265
|
-
formChanged: formChanged
|
273
|
+
formChanged: formChanged,
|
274
|
+
id: "preview"
|
266
275
|
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
267
276
|
center: centerContext,
|
277
|
+
community: community,
|
268
278
|
id: "community"
|
269
279
|
}))));
|
270
280
|
};
|