@matchain/matchid-sdk-react 0.1.29 → 0.1.30

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.
@@ -34,21 +34,26 @@ function App() {
34
34
  }}
35
35
  >
36
36
  <Router>
37
- <div className={`mb-2 p-2 flex gap-2`}>
38
- <label>Appid:</label>
39
- <input value={appid} placeholder={"Appid"} className={"border-solid border"} onChange={(ele) => {
40
- setAppid(ele.target.value)
41
- }}/>
42
- <label>AuthEndpoint:</label>
43
- <input value={endpoints?.auth || ''} placeholder={"Auth Endpoint"} className={"border-solid border"}
44
- onChange={(ele) => {
45
- setEndpoints({...endpoints, auth: ele.target.value})
46
- }}/>
47
- <label>BackEndpoint:</label>
48
- <input value={endpoints?.back || ''} placeholder={"Back Endpoint"} className={"border-solid border"}
49
- onChange={(ele) => {
50
- setEndpoints({...endpoints, back: ele.target.value})
51
- }}/>
37
+ <div className={`mb-2 p-2 flex gap-2 flex-col`}>
38
+ <div>
39
+ <label>Appid:</label>
40
+ <input value={appid} placeholder={"Appid"} className={"border-solid border"} onChange={(ele) => {
41
+ setAppid(ele.target.value)
42
+ }}/></div>
43
+ <div>
44
+ <label>AuthEndpoint:</label>
45
+ <input value={endpoints?.auth || ''} placeholder={"Auth Endpoint"} className={"border-solid border"}
46
+ onChange={(ele) => {
47
+ setEndpoints({...endpoints, auth: ele.target.value})
48
+ }}/>
49
+ </div>
50
+ <div>
51
+ <label>BackEndpoint:</label>
52
+ <input value={endpoints?.back || ''} placeholder={"Back Endpoint"} className={"border-solid border"}
53
+ onChange={(ele) => {
54
+ setEndpoints({...endpoints, back: ele.target.value})
55
+ }}/>
56
+ </div>
52
57
  </div>
53
58
  <nav className={`text-2xl mb-5 p-2 text-red-600 flex gap-10`}>
54
59
  <Link to="/">Home</Link>
@@ -18,7 +18,7 @@ export default function Login(){
18
18
 
19
19
  return (
20
20
  <div className={`flex flex-col gap-10`}>
21
- <div className={`flex gap-5`}>
21
+ <div className={`flex gap-5 flex-wrap`}>
22
22
  <button className={`bg-gray-300 p-1 rounded`}
23
23
  onClick={() => setLoginOpen(true)}>Open Modal
24
24
  </button>
@@ -27,7 +27,7 @@ function QueryDisplay(
27
27
  {keys.map((key) => {
28
28
  return <div key={key} className={`flex gap-[20px]`}>
29
29
  <div className={"w-[200px]"}>{key}</div>
30
- <div className={`flex-1`}>{
30
+ <div className={`flex-1 flex-wrap break-all`}>{
31
31
  typeof query[key] === 'function' ? <Button size="sm" onClick={() => {
32
32
  query[key]()
33
33
  }}>Run</Button> :
@@ -96,7 +96,7 @@ function LoginContent() {
96
96
  setPasswordOpen(false)
97
97
  }}/>
98
98
  </div>
99
- <div className={`flex gap-[20px]`}>
99
+ <div className={`flex gap-[20px] flex-wrap`}>
100
100
 
101
101
  {
102
102
  LoginMethod.map((method) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchain/matchid-sdk-react",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {