onairos 0.0.6 → 0.0.7

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.
package/README.md CHANGED
@@ -195,22 +195,23 @@ function App() {
195
195
 
196
196
  }}
197
197
 
198
- const sendData = {
199
- interestModel: {
200
- title:'Interest',
198
+ const sendData = {
199
+ Small: {
200
+ type:"Personality",
201
201
  descriptions:"Insight into your Interests",
202
202
  reward:"10% Discount"
203
203
  },
204
- personalityModel:{
205
- title:'Personality',
204
+ Medium:{
205
+ type:"Personality",
206
206
  descriptions:"Insight into your Interests",
207
207
  reward:"2 USDC"
208
208
  },
209
- intelectModel:{
210
- title:'Intellect',
209
+ Large:{
210
+ type:"Personality",
211
211
  descriptions:"Insight into your Interests",
212
212
  reward:"2 USDC"
213
- },
213
+ }
214
+ }
214
215
  };
215
216
  useEffect(() => {
216
217
  window.addEventListener('message', UseAPIURL);
package/dist/onairos.js CHANGED
@@ -41,12 +41,14 @@ function Onairos(_ref) {
41
41
  });
42
42
  };
43
43
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("button", {
44
- className: "OnairosConnect flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer",
44
+ className: "OnairosConnect w-20 h-20 flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer",
45
45
  onClick: OnairosAnime
46
46
  }, /*#__PURE__*/_react.default.createElement("img", {
47
47
  src: _OnairosBlack.default,
48
48
  alt: "Onairos Logo",
49
- className: "w-5 h-5 max-w-10 object-scale-down mb-2"
50
- }), /*#__PURE__*/_react.default.createElement("span", null, "Connect to Onairos")));
49
+ className: "w-16 h-16 object-contain mb-2"
50
+ }), " ", /*#__PURE__*/_react.default.createElement("span", {
51
+ className: "whitespace-nowrap"
52
+ }, "Connect to Onairos"), " "));
51
53
  }
52
54
  var _default = exports.default = Onairos;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onairos",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.17.0",
6
6
  "@testing-library/react": "^13.4.0",
package/src/onairos.jsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import onairosLogo from "./OnairosBlack.png";
3
3
 
4
- function Onairos( {requestData, onairosID, access_token, proofMode=false,webpageName}) {
4
+ function Onairos( {requestData, onairosID, proofMode=false,webpageName}) {
5
5
  const OnairosAnime = async () => {
6
6
  try {
7
7
  console.log("Clicked Onairos Connect")
@@ -21,7 +21,7 @@ function Onairos( {requestData, onairosID, access_token, proofMode=false,webpage
21
21
  type: 'GET_API_URL',
22
22
  webpageName: webpageName,
23
23
  onairosID:onairosID,
24
- access_token:access_token,
24
+ access_token:"access_token",
25
25
  account:"ConnectedAccountRef.current", //No Longer needed, REMOVE
26
26
  requestData: requestData,
27
27
  proofMode:proofMode
@@ -31,11 +31,11 @@ function Onairos( {requestData, onairosID, access_token, proofMode=false,webpage
31
31
  return (
32
32
  <div>
33
33
  <button
34
- className="OnairosConnect flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer"
34
+ className="OnairosConnect w-20 h-20 flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer"
35
35
  onClick={OnairosAnime}
36
36
  >
37
- <img src={onairosLogo} alt="Onairos Logo" className="w-5 h-5 max-w-10 object-scale-down mb-2" />
38
- <span>Connect to Onairos</span>
37
+ <img src={onairosLogo} alt="Onairos Logo" className="w-16 h-16 object-contain mb-2" /> {/* Adjust size as needed */}
38
+ <span className="whitespace-nowrap">Connect to Onairos</span> {/* Prevent text from wrapping */}
39
39
  </button>
40
40
  </div>
41
41
  );