@mohamed-karawia/library 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +27 -27
- package/dist/stories/Community/Community.js +27 -29
- 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/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/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/PreviewComponents/ChatPreview/ChatPreview.js +6 -4
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +6 -4
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +6 -4
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +6 -4
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +7 -6
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +6 -4
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +6 -4
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +6 -4
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +6 -4
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +6 -4
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +6 -4
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +6 -4
- package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
- 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/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/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 +19 -19
- 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 +6 -4
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +7 -5
- 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 +35 -33
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +17 -15
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +6 -4
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +7 -5
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +9 -7
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +6 -4
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +6 -4
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +6 -4
- package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
- 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/{Library/Notes/Notes.jsx → Spaces/NotesList/NotesList.jsx} +20 -66
- package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
- package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +10 -74
- 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} +42 -137
- package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +16 -55
- package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +15 -48
- package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +14 -57
- package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +14 -52
- 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} +0 -0
- package/src/stories/store/store.js +3 -4
- package/src/stories/Chat/Chat.jsx +0 -154
- package/src/stories/Events/EventsList/EventsList.jsx +0 -187
- package/src/stories/Library/Folders/Folders.jsx +0 -196
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -172
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -166
@@ -0,0 +1,88 @@
|
|
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 _ViewVideoAlbumList = _interopRequireDefault(require("../../Spaces/ViewVideoAlbumList/ViewVideoAlbumList"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
21
|
+
|
22
|
+
var _VideoAlbumPreview = _interopRequireDefault(require("../../PreviewComponents/VideoAlbumPreview/VideoAlbumPreview"));
|
23
|
+
|
24
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
25
|
+
|
26
|
+
var _excluded = ["showConfigModal", "cancelConfig", "album", "community"];
|
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 VideoAlbumConfig = function VideoAlbumConfig(_ref) {
|
33
|
+
var showConfigModal = _ref.showConfigModal,
|
34
|
+
cancelConfig = _ref.cancelConfig,
|
35
|
+
album = _ref.album,
|
36
|
+
community = _ref.community,
|
37
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
38
|
+
|
39
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, {
|
40
|
+
preview: true,
|
41
|
+
album: album
|
42
|
+
})),
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
44
|
+
centerContext = _useState2[0],
|
45
|
+
setCenterContext = _useState2[1];
|
46
|
+
|
47
|
+
var formChanged = function formChanged(values) {
|
48
|
+
console.log('context changed');
|
49
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, Object.assign({
|
50
|
+
preview: true,
|
51
|
+
album: album
|
52
|
+
}, values)));
|
53
|
+
};
|
54
|
+
|
55
|
+
var tabs = [{
|
56
|
+
title: 'New',
|
57
|
+
id: 'preview'
|
58
|
+
}, {
|
59
|
+
title: 'Context',
|
60
|
+
id: 'community'
|
61
|
+
}];
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
63
|
+
modalIsOpen: showConfigModal,
|
64
|
+
closeModal: cancelConfig,
|
65
|
+
exitModalButton: function exitModalButton(e) {
|
66
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
67
|
+
}
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
69
|
+
title: "Video Album Config",
|
70
|
+
tabs: tabs,
|
71
|
+
id: "styling"
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_VideoAlbumPreview.default, {
|
73
|
+
componentProps: {
|
74
|
+
album: album,
|
75
|
+
preview: true
|
76
|
+
},
|
77
|
+
formChanged: formChanged,
|
78
|
+
id: "preview"
|
79
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
80
|
+
center: centerContext,
|
81
|
+
community: community,
|
82
|
+
id: "community"
|
83
|
+
})));
|
84
|
+
};
|
85
|
+
|
86
|
+
VideoAlbumConfig.defaultProps = {};
|
87
|
+
var _default = VideoAlbumConfig;
|
88
|
+
exports.default = _default;
|
@@ -0,0 +1,89 @@
|
|
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 _ViewVideoAlbums = _interopRequireDefault(require("../../Spaces/ViewVideoAlbums/ViewVideoAlbums"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
21
|
+
|
22
|
+
var _Sections = _interopRequireDefault(require("../../Reusable Components/Sections/Sections"));
|
23
|
+
|
24
|
+
var _VideoAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview"));
|
25
|
+
|
26
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
27
|
+
|
28
|
+
var _excluded = ["showConfigModal", "cancelConfig", "videoAlbums", "community"];
|
29
|
+
|
30
|
+
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); }
|
31
|
+
|
32
|
+
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; }
|
33
|
+
|
34
|
+
var VideoAlbumsConfigModal = function VideoAlbumsConfigModal(_ref) {
|
35
|
+
var showConfigModal = _ref.showConfigModal,
|
36
|
+
cancelConfig = _ref.cancelConfig,
|
37
|
+
videoAlbums = _ref.videoAlbums,
|
38
|
+
community = _ref.community,
|
39
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
40
|
+
|
41
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbums.default, {
|
42
|
+
preview: true,
|
43
|
+
videoAlbums: videoAlbums
|
44
|
+
})),
|
45
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
46
|
+
centerContext = _useState2[0],
|
47
|
+
setCenterContext = _useState2[1];
|
48
|
+
|
49
|
+
var formChanged = function formChanged(values) {
|
50
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbums.default, Object.assign({
|
51
|
+
preview: true,
|
52
|
+
videoAlbums: videoAlbums
|
53
|
+
}, values)));
|
54
|
+
};
|
55
|
+
|
56
|
+
var tabs = [{
|
57
|
+
title: 'New',
|
58
|
+
id: 'preview'
|
59
|
+
}, {
|
60
|
+
title: 'Context',
|
61
|
+
id: 'community'
|
62
|
+
}];
|
63
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
64
|
+
modalIsOpen: showConfigModal,
|
65
|
+
closeModal: cancelConfig,
|
66
|
+
exitModalButton: function exitModalButton(e) {
|
67
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
68
|
+
}
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
70
|
+
title: "Video Gallery Config",
|
71
|
+
tabs: tabs,
|
72
|
+
id: "styling"
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_VideoAlbumsPreview.default, {
|
74
|
+
componentProps: {
|
75
|
+
videoAlbums: videoAlbums,
|
76
|
+
preview: true
|
77
|
+
},
|
78
|
+
formChanged: formChanged,
|
79
|
+
id: "preview"
|
80
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
81
|
+
center: centerContext,
|
82
|
+
community: community,
|
83
|
+
id: "community"
|
84
|
+
})));
|
85
|
+
};
|
86
|
+
|
87
|
+
VideoAlbumsConfigModal.defaultProps = {};
|
88
|
+
var _default = VideoAlbumsConfigModal;
|
89
|
+
exports.default = _default;
|
@@ -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;
|
@@ -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,
|
@@ -144,10 +144,12 @@ var ChatPreview = function ChatPreview(props) {
|
|
144
144
|
}];
|
145
145
|
|
146
146
|
var handleChange = function handleChange(values) {
|
147
|
-
if (
|
148
|
-
|
149
|
-
|
150
|
-
|
147
|
+
if (props.formChanged) {
|
148
|
+
if (values) {
|
149
|
+
props.formChanged(values);
|
150
|
+
setChatStyles(values);
|
151
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
152
|
+
}
|
151
153
|
}
|
152
154
|
};
|
153
155
|
|
@@ -109,10 +109,12 @@ var EventPreview = function EventPreview(props) {
|
|
109
109
|
}];
|
110
110
|
|
111
111
|
var handleChange = function handleChange(values) {
|
112
|
-
if (
|
113
|
-
|
114
|
-
|
115
|
-
|
112
|
+
if (props.formChanged) {
|
113
|
+
if (values) {
|
114
|
+
props.formChanged(values);
|
115
|
+
setEventStyles(values);
|
116
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
117
|
+
}
|
116
118
|
}
|
117
119
|
};
|
118
120
|
|
@@ -143,10 +143,12 @@ var EventsPreview = function EventsPreview(props) {
|
|
143
143
|
}];
|
144
144
|
|
145
145
|
var handleChange = function handleChange(values) {
|
146
|
-
if (
|
147
|
-
|
148
|
-
|
149
|
-
|
146
|
+
if (props.formChanged) {
|
147
|
+
if (values) {
|
148
|
+
props.formChanged(values);
|
149
|
+
setEventsStyles(values);
|
150
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
151
|
+
}
|
150
152
|
}
|
151
153
|
};
|
152
154
|
|
@@ -133,10 +133,12 @@ var FoldersPreview = function FoldersPreview(props) {
|
|
133
133
|
}];
|
134
134
|
|
135
135
|
var handleChange = function handleChange(values) {
|
136
|
-
if (
|
137
|
-
|
138
|
-
|
139
|
-
|
136
|
+
if (props.formChanged) {
|
137
|
+
if (values) {
|
138
|
+
props.formChanged(values);
|
139
|
+
setFoldersStyles(values);
|
140
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
141
|
+
}
|
140
142
|
}
|
141
143
|
};
|
142
144
|
|
@@ -128,10 +128,12 @@ var MusicAlbum = function MusicAlbum(props) {
|
|
128
128
|
}];
|
129
129
|
|
130
130
|
var handleChange = function handleChange(values) {
|
131
|
-
if (
|
132
|
-
|
133
|
-
|
134
|
-
|
131
|
+
if (props.formChanged) {
|
132
|
+
if (values) {
|
133
|
+
props.formChanged(values);
|
134
|
+
setMusicAlbumStyles(values);
|
135
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
136
|
+
}
|
135
137
|
}
|
136
138
|
};
|
137
139
|
|
@@ -131,10 +131,12 @@ var MusicAlbumsPreview = function MusicAlbumsPreview(props) {
|
|
131
131
|
}];
|
132
132
|
|
133
133
|
var handleChange = function handleChange(values) {
|
134
|
-
if (
|
135
|
-
|
136
|
-
|
137
|
-
|
134
|
+
if (props.formChanged) {
|
135
|
+
if (values) {
|
136
|
+
props.formChanged(values);
|
137
|
+
setMusicAlbumsStyles(values);
|
138
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
139
|
+
}
|
138
140
|
}
|
139
141
|
};
|
140
142
|
|
@@ -171,8 +173,7 @@ var MusicAlbumsPreview = function MusicAlbumsPreview(props) {
|
|
171
173
|
})), /*#__PURE__*/_react.default.createElement(_globalStyles.Right, null, /*#__PURE__*/_react.default.createElement(_Preview.default, {
|
172
174
|
type: 'MusicAlbums',
|
173
175
|
componentProps: props.componentProps,
|
174
|
-
stylingProps: musicAlbumsStyles
|
175
|
-
da: true
|
176
|
+
stylingProps: musicAlbumsStyles
|
176
177
|
})));
|
177
178
|
};
|
178
179
|
|
@@ -103,10 +103,12 @@ var MusicPlayerPreview = function MusicPlayerPreview(props) {
|
|
103
103
|
}];
|
104
104
|
|
105
105
|
var handleChange = function handleChange(values) {
|
106
|
-
if (
|
107
|
-
|
108
|
-
|
109
|
-
|
106
|
+
if (props.formChanged) {
|
107
|
+
if (values) {
|
108
|
+
props.formChanged(values);
|
109
|
+
setMusicPlayerStyles(values);
|
110
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
111
|
+
}
|
110
112
|
}
|
111
113
|
};
|
112
114
|
|
@@ -64,10 +64,12 @@ var NavbarPreview = function NavbarPreview(props) {
|
|
64
64
|
}];
|
65
65
|
|
66
66
|
var handleChange = function handleChange(values) {
|
67
|
-
if (
|
68
|
-
|
69
|
-
|
70
|
-
|
67
|
+
if (props.formChanged) {
|
68
|
+
if (values) {
|
69
|
+
props.formChanged(values);
|
70
|
+
setNavbarStyles(values);
|
71
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
72
|
+
}
|
71
73
|
}
|
72
74
|
};
|
73
75
|
|
@@ -124,10 +124,12 @@ var NotesPreview = function NotesPreview(props) {
|
|
124
124
|
}];
|
125
125
|
|
126
126
|
var handleChange = function handleChange(values) {
|
127
|
-
if (
|
128
|
-
|
129
|
-
|
130
|
-
|
127
|
+
if (props.formChanged) {
|
128
|
+
if (values) {
|
129
|
+
props.formChanged(values);
|
130
|
+
setNotesStyles(values);
|
131
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
132
|
+
}
|
131
133
|
}
|
132
134
|
};
|
133
135
|
|
@@ -140,10 +140,12 @@ var PhotoAlbumPreview = function PhotoAlbumPreview(props) {
|
|
140
140
|
}];
|
141
141
|
|
142
142
|
var handleChange = function handleChange(values) {
|
143
|
-
if (
|
144
|
-
|
145
|
-
|
146
|
-
|
143
|
+
if (props.formChanged) {
|
144
|
+
if (values) {
|
145
|
+
props.formChanged(values);
|
146
|
+
setPhotoAlbumStyles(values);
|
147
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
148
|
+
}
|
147
149
|
}
|
148
150
|
};
|
149
151
|
|