@oasisomniverse/nextjs 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/package.json +29 -0
  2. package/src/components/ForgetPassword.tsx +127 -0
  3. package/src/components/Login.tsx +223 -0
  4. package/src/components/ResetPassword.tsx +177 -0
  5. package/src/components/Signup.tsx +286 -0
  6. package/src/components/VerifyEmail.tsx +69 -0
  7. package/src/components/common/AvatarConnect.tsx +90 -0
  8. package/src/components/common/Contact.tsx +61 -0
  9. package/src/components/common/Eggs.tsx +51 -0
  10. package/src/components/common/Game.tsx +37 -0
  11. package/src/components/common/HyperDrive.tsx +51 -0
  12. package/src/components/common/KarmaToast.tsx +39 -0
  13. package/src/components/common/Map.tsx +43 -0
  14. package/src/components/common/MenuMessage.tsx +71 -0
  15. package/src/components/common/Messaging.tsx +75 -0
  16. package/src/components/common/Mission.tsx +41 -0
  17. package/src/components/common/NFT.tsx +43 -0
  18. package/src/components/common/NavBar.tsx +138 -0
  19. package/src/components/common/OApp.tsx +42 -0
  20. package/src/components/common/ONET.tsx +51 -0
  21. package/src/components/common/ONODE.tsx +50 -0
  22. package/src/components/common/OasisModal.tsx +30 -0
  23. package/src/components/common/ProviderDropdown.tsx +26 -0
  24. package/src/components/common/Providers.tsx +39 -0
  25. package/src/components/common/Quest.tsx +41 -0
  26. package/src/components/common/SearchAvatars.tsx +50 -0
  27. package/src/components/common/Seeds.tsx +40 -0
  28. package/src/components/common/Settings.tsx +71 -0
  29. package/src/components/common/StarField.tsx +57 -0
  30. package/src/components/common/Wallet.tsx +46 -0
  31. package/src/components/popups/avatar/components/AvatarWallet.tsx +170 -0
  32. package/src/components/popups/avatar/components/EditAvatar.tsx +35 -0
  33. package/src/components/popups/avatar/components/SearchAvatar.tsx +35 -0
  34. package/src/components/popups/avatar/components/ViewAvatar.tsx +149 -0
  35. package/src/components/popups/avatar/index.tsx +40 -0
  36. package/src/components/popups/comingsoon/ComingSoon.tsx +29 -0
  37. package/src/components/popups/confirmation/Confirmation.tsx +31 -0
  38. package/src/components/popups/contact/index.tsx +101 -0
  39. package/src/components/popups/data-screen/components/AddData.tsx +90 -0
  40. package/src/components/popups/data-screen/components/CrossChainManagement.tsx +88 -0
  41. package/src/components/popups/data-screen/components/LoadData.tsx +158 -0
  42. package/src/components/popups/data-screen/components/ManageData.tsx +35 -0
  43. package/src/components/popups/data-screen/components/OffChainManagement.tsx +178 -0
  44. package/src/components/popups/data-screen/components/SearchData.tsx +35 -0
  45. package/src/components/popups/data-screen/index.tsx +53 -0
  46. package/src/components/popups/eggs/components/ManageEggs.tsx +35 -0
  47. package/src/components/popups/eggs/components/SearchEggs.tsx +35 -0
  48. package/src/components/popups/eggs/components/ViewEggs.tsx +35 -0
  49. package/src/components/popups/eggs/index.tsx +32 -0
  50. package/src/components/popups/game/components/SearchProfiles.tsx +35 -0
  51. package/src/components/popups/game/components/ViewAchievements.tsx +35 -0
  52. package/src/components/popups/game/components/ViewLeagues.tsx +35 -0
  53. package/src/components/popups/game/components/ViewTournaments.tsx +35 -0
  54. package/src/components/popups/game/index.tsx +39 -0
  55. package/src/components/popups/karma/components/SearchKarma.tsx +35 -0
  56. package/src/components/popups/karma/components/ViewAvatarKarma.tsx +140 -0
  57. package/src/components/popups/karma/components/ViewKarma.tsx +104 -0
  58. package/src/components/popups/karma/components/VoteKarma.tsx +35 -0
  59. package/src/components/popups/karma/index.tsx +35 -0
  60. package/src/components/popups/map/components/Add2dObjectMap.tsx +35 -0
  61. package/src/components/popups/map/components/Add3dObjectMap.tsx +35 -0
  62. package/src/components/popups/map/components/AddQuestToMap.tsx +35 -0
  63. package/src/components/popups/map/components/DownloadOurWorld.tsx +35 -0
  64. package/src/components/popups/map/components/ManageMap.tsx +35 -0
  65. package/src/components/popups/map/components/PlotRouteOnMap.tsx +35 -0
  66. package/src/components/popups/map/components/SearchMap.tsx +35 -0
  67. package/src/components/popups/map/components/ViewGlobal3dMap.tsx +35 -0
  68. package/src/components/popups/map/components/ViewHalonsOnMap.tsx +35 -0
  69. package/src/components/popups/map/components/ViewOappOnMap.tsx +35 -0
  70. package/src/components/popups/map/components/ViewQuestOnMap.tsx +35 -0
  71. package/src/components/popups/map/index.tsx +80 -0
  72. package/src/components/popups/messages/Message.tsx +87 -0
  73. package/src/components/popups/mission/components/ManageMission.tsx +35 -0
  74. package/src/components/popups/mission/components/SearchMission.tsx +35 -0
  75. package/src/components/popups/mission/components/ViewMission.tsx +35 -0
  76. package/src/components/popups/mission/index.tsx +33 -0
  77. package/src/components/popups/nft/ContactPopup.tsx +147 -0
  78. package/src/components/popups/nft/Solana.tsx +71 -0
  79. package/src/components/popups/nft/components/ManageOasisNft.tsx +35 -0
  80. package/src/components/popups/nft/components/PurchaseOasisNft.tsx +35 -0
  81. package/src/components/popups/nft/components/PurchaseOasisVirtualLandNft.tsx +35 -0
  82. package/src/components/popups/nft/components/SearchOasisNft.tsx +35 -0
  83. package/src/components/popups/nft/components/ViewOasisNft.tsx +35 -0
  84. package/src/components/popups/nft/index.tsx +46 -0
  85. package/src/components/popups/oapp/components/CreateOAPP.tsx +35 -0
  86. package/src/components/popups/oapp/components/DeployOAPP.tsx +35 -0
  87. package/src/components/popups/oapp/components/DownloadOurWorld.tsx +35 -0
  88. package/src/components/popups/oapp/components/EditOAPP.tsx +35 -0
  89. package/src/components/popups/oapp/components/InstallOAPP.tsx +35 -0
  90. package/src/components/popups/oapp/components/LaunchOAPP.tsx +35 -0
  91. package/src/components/popups/oapp/components/ManageOAPP.tsx +69 -0
  92. package/src/components/popups/oapp/components/SearchOAPP.tsx +35 -0
  93. package/src/components/popups/oapp/index.tsx +63 -0
  94. package/src/components/popups/provider/components/ActivityPub.tsx +35 -0
  95. package/src/components/popups/provider/components/CompareProviderSpeeds.tsx +124 -0
  96. package/src/components/popups/provider/components/Eosio.tsx +35 -0
  97. package/src/components/popups/provider/components/Ethereum.tsx +35 -0
  98. package/src/components/popups/provider/components/Holochain.tsx +35 -0
  99. package/src/components/popups/provider/components/Ipfs.tsx +36 -0
  100. package/src/components/popups/provider/components/ManageAutoFailOver.tsx +35 -0
  101. package/src/components/popups/provider/components/ManageAutoReplicaton.tsx +35 -0
  102. package/src/components/popups/provider/components/ManageLoadBalancing.tsx +35 -0
  103. package/src/components/popups/provider/components/ManageProviders.tsx +35 -0
  104. package/src/components/popups/provider/components/MongoDb.tsx +35 -0
  105. package/src/components/popups/provider/components/Neo4j.tsx +35 -0
  106. package/src/components/popups/provider/components/SearchProviders.tsx +123 -0
  107. package/src/components/popups/provider/components/Seeds.tsx +35 -0
  108. package/src/components/popups/provider/components/Solid.tsx +35 -0
  109. package/src/components/popups/provider/components/SqlLite.tsx +35 -0
  110. package/src/components/popups/provider/components/ThreeFold.tsx +35 -0
  111. package/src/components/popups/provider/components/ViewProviderStats.tsx +124 -0
  112. package/src/components/popups/provider/components/ViewProviders.tsx +122 -0
  113. package/src/components/popups/provider/index.tsx +114 -0
  114. package/src/components/popups/quest/components/ManageQuest.tsx +35 -0
  115. package/src/components/popups/quest/components/SearchQuest.tsx +35 -0
  116. package/src/components/popups/quest/components/ViewQuest.tsx +35 -0
  117. package/src/components/popups/quest/index.tsx +33 -0
  118. package/src/components/popups/seeds/components/AcceptInvite.tsx +62 -0
  119. package/src/components/popups/seeds/components/DonateSeeds.tsx +179 -0
  120. package/src/components/popups/seeds/components/ManageSeeds.tsx +35 -0
  121. package/src/components/popups/seeds/components/PayWithSeeds.tsx +234 -0
  122. package/src/components/popups/seeds/components/RewardSeeds.tsx +179 -0
  123. package/src/components/popups/seeds/components/SearchSeeds.tsx +92 -0
  124. package/src/components/popups/seeds/components/SendInvite.tsx +179 -0
  125. package/src/components/popups/seeds/components/ViewOrganizations.tsx +179 -0
  126. package/src/components/popups/seeds/components/ViewSeeds.tsx +222 -0
  127. package/src/components/popups/seeds/index.tsx +71 -0
  128. package/src/index.ts +129 -0
@@ -0,0 +1,158 @@
1
+ 'use client';
2
+ import React from 'react';
3
+
4
+ import { Modal } from 'react-bootstrap';
5
+ import axios from "axios";
6
+ import { toast } from 'react-toastify';
7
+ import { AgGridReact } from 'ag-grid-react';
8
+ import API_BASE_URL from "../../../../config/api";
9
+
10
+ var filterParams = {
11
+ comparator: function (filterLocalDateAtMidnight, cellValue) {
12
+ var dateAsString = cellValue;
13
+ if (dateAsString === null) return -1;
14
+ var dateParts = dateAsString.split('/');
15
+ var cellDate = new Date(
16
+ Number(dateParts[2]),
17
+ Number(dateParts[1]) - 1,
18
+ Number(dateParts[0])
19
+ );
20
+ if (filterLocalDateAtMidnight.getTime() === cellDate.getTime()) {
21
+ return 0;
22
+ }
23
+ if (cellDate < filterLocalDateAtMidnight) {
24
+ return -1;
25
+ }
26
+ if (cellDate > filterLocalDateAtMidnight) {
27
+ return 1;
28
+ }
29
+ },
30
+ browserDatePicker: true,
31
+ };
32
+
33
+ class LoadData extends React.Component {
34
+
35
+ state = {
36
+ columnDefs: [
37
+ {
38
+ field: 'athlete'
39
+ },
40
+ {
41
+ field: 'age',
42
+ filter: 'agNumberColumnFilter',
43
+ maxWidth: 100,
44
+ },
45
+ { field: 'country' },
46
+ {
47
+ field: 'year',
48
+ maxWidth: 100,
49
+ },
50
+ {
51
+ field: 'date',
52
+ filter: 'agDateColumnFilter',
53
+ filterParams: filterParams,
54
+ },
55
+ { field: 'sport' },
56
+ {
57
+ field: 'gold',
58
+ filter: 'agNumberColumnFilter',
59
+ },
60
+ {
61
+ field: 'silver',
62
+ filter: 'agNumberColumnFilter',
63
+ },
64
+ {
65
+ field: 'bronze',
66
+ filter: 'agNumberColumnFilter',
67
+ },
68
+ {
69
+ field: 'total',
70
+ filter: false,
71
+ },
72
+ ],
73
+ defaultColDef: {
74
+ flex: 1,
75
+ minWidth: 150,
76
+ filter: true,
77
+ sortable: true,
78
+ floatingFilter: true,
79
+ resizable: true,
80
+ // overflow:true
81
+ },
82
+ rowData: null,
83
+ };
84
+
85
+ onGridReady = (params) => {
86
+ this.gridApi = params.api;
87
+ this.gridColumnApi = params.columnApi;
88
+
89
+ const updateData = (data) => {
90
+ this.setState({ rowData: data });
91
+ };
92
+
93
+ fetch('https://www.ag-grid.com/example-assets/olympic-winners.json')
94
+ .then((resp) => resp.json())
95
+ .then((data) => updateData(data));
96
+ };
97
+ getApiData = () => {
98
+ this.setState({ loading: true })
99
+
100
+ axios({
101
+ method: 'get',
102
+ url: API_BASE_URL,
103
+ headers: {
104
+ 'Content-Type': 'application/json'
105
+ },
106
+ })
107
+ .then((response) => {
108
+ this.setState({loading: false})
109
+
110
+ if (response.data.result?.isError) {
111
+ toast.error(response.data.result.message);
112
+ return;
113
+ }
114
+
115
+ toast.success(response.data.result.message);
116
+ })
117
+ .catch((err) => {
118
+ toast.error('err');
119
+ this.setState({loading: false})
120
+ return { error: true, data: err };
121
+ });
122
+ }
123
+
124
+ render() {
125
+ const { show, hide } = this.props;
126
+
127
+ return (
128
+ <>
129
+ <Modal
130
+ centered
131
+ className="custom-modal custom-popup-component light-custom-popup"
132
+ show={show}
133
+ dialogClassName=""
134
+ onHide={() => hide('data', 'loadData')}
135
+ >
136
+ <Modal.Body>
137
+ <span className="form-cross-icon" onClick={() => hide('data', 'loadData')}>
138
+ <i className="fa fa-times"></i>
139
+ </span>
140
+
141
+ <h1 className="single-heading">Data</h1>
142
+
143
+ <div className="ag-theme-alpine custom-ag-parent">
144
+ <AgGridReact
145
+ columnDefs={this.state.columnDefs}
146
+ defaultColDef={this.state.defaultColDef}
147
+ onGridReady={this.onGridReady}
148
+ rowData={this.state.rowData}
149
+ />
150
+ </div>
151
+ </Modal.Body>
152
+ </Modal>
153
+ </>
154
+ );
155
+ }
156
+ }
157
+
158
+ export default LoadData;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Modal } from "react-bootstrap";
4
+ import '../../../../assets/scss/coming-soon.scss';
5
+ import InfoIcon from '../../../../assets/images/icon-info.svg'
6
+
7
+ class SearchData extends React.Component {
8
+ state = { }
9
+ render() {
10
+ const { show, hide } = this.props;
11
+
12
+ return (
13
+ <>
14
+ <Modal
15
+ size="sm"
16
+ show={show}
17
+ dialogClassName=""
18
+ onHide={() => hide('data', 'manageData')}
19
+ >
20
+ <Modal.Body className="text-center coming-soon">
21
+ <img
22
+ src={InfoIcon}
23
+ alt="icon"
24
+ />
25
+ <h2>Coming Soon</h2>
26
+ <p>This module is coming soon...</p>
27
+ <button onClick={() => hide('data', 'manageData')}>OK</button>
28
+ </Modal.Body>
29
+ </Modal>
30
+ </>
31
+ );
32
+ }
33
+ }
34
+
35
+ export default SearchData;
@@ -0,0 +1,178 @@
1
+ 'use client';
2
+ import React from "react";
3
+
4
+ import { Modal } from "react-bootstrap";
5
+ import axios from "axios";
6
+ import { toast } from "react-toastify";
7
+ import API_BASE_URL from "../../../../config/api";
8
+
9
+ class OffChainManagement extends React.Component {
10
+ state = {
11
+ tagsList: [
12
+ { id: 1, name: "Item 01", status: false },
13
+ { id: 2, name: "Item 02", status: false },
14
+ { id: 3, name: "Item 03", status: false },
15
+ { id: 4, name: "Item 04", status: false },
16
+ { id: 5, name: "Item 05", status: false },
17
+ { id: 6, name: "Item 06", status: false },
18
+ { id: 7, name: "Item 07", status: false },
19
+ { id: 8, name: "Item 08", status: false },
20
+ ],
21
+ };
22
+
23
+ handleInputTagChange = (item) => {
24
+ let tags = [...this.state.tagsList];
25
+
26
+ const index = tags.indexOf(item);
27
+ tags[index].status = !tags[index].status;
28
+
29
+ this.setState({
30
+ tagsList: tags,
31
+ });
32
+ };
33
+
34
+ toggleAllTags = (action) => {
35
+ let tags = [...this.state.tagsList];
36
+ tags.map((tag) => {
37
+ tag.status = action === "add" ? true : false;
38
+ });
39
+
40
+ this.setState({
41
+ tagsList: tags,
42
+ });
43
+ };
44
+
45
+ toggleSelectedTags = (action) => {
46
+ let tags = [...this.state.tagsList];
47
+
48
+ tags.map((tag) => {
49
+ tag.status = action === "add" ? true : false;
50
+ });
51
+ };
52
+
53
+ saveData = () => {
54
+ toast.success(" Your Data is Saved!");
55
+ };
56
+
57
+ getApiData = () => {
58
+ this.setState({ loading: true })
59
+
60
+ axios({
61
+ method: 'get',
62
+ url: API_BASE_URL,
63
+ headers: {
64
+ 'Content-Type': 'application/json'
65
+ },
66
+ })
67
+ .then((response) => {
68
+ this.setState({loading: false})
69
+
70
+ if (response.data.result?.isError) {
71
+ toast.error(response.data.result.message);
72
+ return;
73
+ }
74
+
75
+ toast.success(response.data.result.message);
76
+ })
77
+ .catch((err) => {
78
+ toast.error('err');
79
+ this.setState({loading: false})
80
+ return { error: true, data: err };
81
+ });
82
+ }
83
+
84
+ render() {
85
+ const { show, hide } = this.props;
86
+
87
+ return (
88
+ <>
89
+ <Modal
90
+ centered
91
+ className="custom-modal custom-popup-component"
92
+ show={show}
93
+ onHide={() => hide("data", "offChainManagement")}
94
+ >
95
+ <Modal.Body>
96
+ <span
97
+ className="form-cross-icon"
98
+ onClick={() => hide("data", "offChainManagement")}
99
+ >
100
+ <i className="fa fa-times"></i>
101
+ </span>
102
+
103
+ <div className="popup-container default-popup">
104
+ <div className="data-screen-container off-chain-management">
105
+ <h1 className="single-heading">Off Chain Management</h1>
106
+
107
+ <form className="custom-form" style={{padding: 0}}>
108
+ <div className="off-chain-container">
109
+ <div className="All-provider">
110
+ <h3>All Providers</h3>
111
+ <ul className="list-item list-box">
112
+ {this.state.tagsList.map((tag) =>
113
+ tag.status ? null : (
114
+ <li key={tag.id}>
115
+ <label>
116
+ <input
117
+ type="checkbox"
118
+ name="checkbox"
119
+ checked={tag.status}
120
+ onChange={() => this.handleInputTagChange(tag)}
121
+ />
122
+ <span>{tag.name}</span>
123
+ </label>
124
+ </li>
125
+ )
126
+ )}
127
+ </ul>
128
+ </div>
129
+
130
+ <div className="buttons-list">
131
+ {/* <button>ADD</button> */}
132
+
133
+ {/* <button className=" sm-button" onClick={() => this.toggleAllTags("add")}>
134
+ ADD ALL
135
+ </button> */}
136
+
137
+ {/* <button>REMOVE</button> */}
138
+
139
+ {/* <button className=" sm-button" onClick={() => this.toggleAllTags("remove")}>
140
+ REMOVE ALL
141
+ </button> */}
142
+ </div>
143
+ <div className="off-chain-provider">
144
+ <h3>Off Chain Providers</h3>
145
+ <ul className="list-item list-box">
146
+ {this.state.tagsList.map((tag) =>
147
+ tag.status ? (
148
+ <li key={tag.id}>
149
+ <label>
150
+ <input
151
+ type="checkbox"
152
+ name="checkbox"
153
+ checked={tag.status}
154
+ onChange={() => this.handleInputTagChange(tag)}
155
+ />
156
+ <span>{tag.name}</span>
157
+ </label>
158
+ </li>
159
+ ) : null
160
+ )}
161
+ </ul>
162
+ </div>
163
+ </div>
164
+
165
+ <button className="submit-button" onClick={this.saveData} type="submit">
166
+ Save
167
+ </button>
168
+ </form>
169
+ </div>
170
+ </div>
171
+ </Modal.Body>
172
+ </Modal>
173
+ </>
174
+ );
175
+ }
176
+ }
177
+
178
+ export default OffChainManagement;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Modal } from "react-bootstrap";
4
+ import '../../../../assets/scss/coming-soon.scss';
5
+ import InfoIcon from '../../../../assets/images/icon-info.svg'
6
+
7
+ class SearchData extends React.Component {
8
+ state = { }
9
+ render() {
10
+ const { show, hide } = this.props;
11
+
12
+ return (
13
+ <>
14
+ <Modal
15
+ size="sm"
16
+ show={show}
17
+ dialogClassName=""
18
+ onHide={() => hide('data', 'searchData')}
19
+ >
20
+ <Modal.Body className="text-center coming-soon">
21
+ <img
22
+ src={InfoIcon}
23
+ alt="icon"
24
+ />
25
+ <h2>Coming Soon</h2>
26
+ <p>This module is coming soon...</p>
27
+ <button onClick={() => hide('data', 'searchData')}>OK</button>
28
+ </Modal.Body>
29
+ </Modal>
30
+ </>
31
+ );
32
+ }
33
+ }
34
+
35
+ export default SearchData;
@@ -0,0 +1,53 @@
1
+ 'use client';
2
+ import React from 'react';
3
+
4
+ import AddData from './components/AddData';
5
+ import LoadData from './components/LoadData';
6
+ import OffChainManagement from './components/OffChainManagement';
7
+ import CrossChainManagement from './components/CrossChainManagement';
8
+
9
+ import "../../../assets/scss/data-screen.scss";
10
+ import SearchData from './components/SearchData';
11
+ import ManageData from './components/ManageData';
12
+
13
+ class DataScreen extends React.Component {
14
+
15
+ render() {
16
+ const props=this.props;
17
+ return(
18
+ <>
19
+ <AddData
20
+ show={props.data.sendData}
21
+ hide={props.toggleScreenPopup}
22
+ />
23
+
24
+ <LoadData
25
+ show={props.data.loadData}
26
+ hide={props.toggleScreenPopup}
27
+ />
28
+
29
+ <ManageData
30
+ show={props.data.manageData}
31
+ hide={props.toggleScreenPopup}
32
+ />
33
+
34
+ <OffChainManagement
35
+ show={props.data.offChainManagement}
36
+ hide={props.toggleScreenPopup}
37
+ />
38
+
39
+ <CrossChainManagement
40
+ show={props.data.crossChainManagement}
41
+ hide={props.toggleScreenPopup}
42
+ />
43
+
44
+ <SearchData
45
+ show={props.data.searchData}
46
+ hide={props.toggleScreenPopup}
47
+ />
48
+ </>
49
+ )
50
+ }
51
+ }
52
+
53
+ export default DataScreen;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Modal } from "react-bootstrap";
4
+ import '../../../../assets/scss/coming-soon.scss';
5
+ import InfoIcon from '../../../../assets/images/icon-info.svg'
6
+
7
+ class ManageEggs extends React.Component {
8
+ state = { }
9
+ render() {
10
+ const { show, hide } = this.props;
11
+
12
+ return (
13
+ <>
14
+ <Modal
15
+ size="sm"
16
+ show={show}
17
+ dialogClassName=""
18
+ onHide={() => hide('eggs', 'manageEggs')}
19
+ >
20
+ <Modal.Body className="text-center coming-soon">
21
+ <img
22
+ src={InfoIcon}
23
+ alt="icon"
24
+ />
25
+ <h2>Coming Soon</h2>
26
+ <p>This module is coming soon...</p>
27
+ <button onClick={() => hide('eggs', 'manageEggs')}>OK</button>
28
+ </Modal.Body>
29
+ </Modal>
30
+ </>
31
+ );
32
+ }
33
+ }
34
+
35
+ export default ManageEggs;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Modal } from "react-bootstrap";
4
+ import '../../../../assets/scss/coming-soon.scss';
5
+ import InfoIcon from '../../../../assets/images/icon-info.svg'
6
+
7
+ class SearchEggs extends React.Component {
8
+ state = { }
9
+ render() {
10
+ const { show, hide } = this.props;
11
+
12
+ return (
13
+ <>
14
+ <Modal
15
+ size="sm"
16
+ show={show}
17
+ dialogClassName=""
18
+ onHide={() => hide('eggs', 'searchEggs')}
19
+ >
20
+ <Modal.Body className="text-center coming-soon">
21
+ <img
22
+ src={InfoIcon}
23
+ alt="icon"
24
+ />
25
+ <h2>Coming Soon</h2>
26
+ <p>This module is coming soon...</p>
27
+ <button onClick={() => hide('eggs', 'searchEggs')}>OK</button>
28
+ </Modal.Body>
29
+ </Modal>
30
+ </>
31
+ );
32
+ }
33
+ }
34
+
35
+ export default SearchEggs;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Modal } from "react-bootstrap";
4
+ import '../../../../assets/scss/coming-soon.scss';
5
+ import InfoIcon from '../../../../assets/images/icon-info.svg'
6
+
7
+ class ViewEggs extends React.Component {
8
+ state = { }
9
+ render() {
10
+ const { show, hide } = this.props;
11
+
12
+ return (
13
+ <>
14
+ <Modal
15
+ size="sm"
16
+ show={show}
17
+ dialogClassName=""
18
+ onHide={() => hide('eggs', 'viewEggs')}
19
+ >
20
+ <Modal.Body className="text-center coming-soon">
21
+ <img
22
+ src={InfoIcon}
23
+ alt="icon"
24
+ />
25
+ <h2>Coming Soon</h2>
26
+ <p>This module is coming soon...</p>
27
+ <button onClick={() => hide('eggs', 'viewEggs')}>OK</button>
28
+ </Modal.Body>
29
+ </Modal>
30
+ </>
31
+ );
32
+ }
33
+ }
34
+
35
+ export default ViewEggs;
@@ -0,0 +1,32 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import ManageEggs from './components/ManageEggs';
4
+ import SearchEggs from './components/SearchEggs';
5
+ import ViewEggs from './components/ViewEggs';
6
+
7
+ class Eggs extends React.Component {
8
+
9
+ render() {
10
+ const props=this.props;
11
+ return(
12
+ <>
13
+ <ViewEggs
14
+ show={props.eggs.viewEggs}
15
+ hide={props.toggleScreenPopup}
16
+ />
17
+
18
+ <ManageEggs
19
+ show={props.eggs.manageEggs}
20
+ hide={props.toggleScreenPopup}
21
+ />
22
+
23
+ <SearchEggs
24
+ show={props.eggs.searchEggs}
25
+ hide={props.toggleScreenPopup}
26
+ />
27
+ </>
28
+ )
29
+ }
30
+ }
31
+
32
+ export default Eggs;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Modal } from "react-bootstrap";
4
+ import '../../../../assets/scss/coming-soon.scss';
5
+ import InfoIcon from '../../../../assets/images/icon-info.svg'
6
+
7
+ class SearchProfiles extends React.Component {
8
+ state = { }
9
+ render() {
10
+ const { show, hide } = this.props;
11
+
12
+ return (
13
+ <>
14
+ <Modal
15
+ size="sm"
16
+ show={show}
17
+ dialogClassName=""
18
+ onHide={() => hide('game', 'searchProfiles')}
19
+ >
20
+ <Modal.Body className="text-center coming-soon">
21
+ <img
22
+ src={InfoIcon}
23
+ alt="icon"
24
+ />
25
+ <h2>Coming Soon</h2>
26
+ <p>This module is coming soon...</p>
27
+ <button onClick={() => hide('game', 'searchProfiles')}>OK</button>
28
+ </Modal.Body>
29
+ </Modal>
30
+ </>
31
+ );
32
+ }
33
+ }
34
+
35
+ export default SearchProfiles;
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Modal } from "react-bootstrap";
4
+ import '../../../../assets/scss/coming-soon.scss';
5
+ import InfoIcon from '../../../../assets/images/icon-info.svg'
6
+
7
+ class ViewAchievements extends React.Component {
8
+ state = { }
9
+ render() {
10
+ const { show, hide } = this.props;
11
+
12
+ return (
13
+ <>
14
+ <Modal
15
+ size="sm"
16
+ show={show}
17
+ dialogClassName=""
18
+ onHide={() => hide('game', 'viewAchievements')}
19
+ >
20
+ <Modal.Body className="text-center coming-soon">
21
+ <img
22
+ src={InfoIcon}
23
+ alt="icon"
24
+ />
25
+ <h2>Coming Soon</h2>
26
+ <p>This module is coming soon...</p>
27
+ <button onClick={() => hide('game', 'viewAchievements')}>OK</button>
28
+ </Modal.Body>
29
+ </Modal>
30
+ </>
31
+ );
32
+ }
33
+ }
34
+
35
+ export default ViewAchievements;