@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.
- package/dist/index.css +16 -6
- package/dist/index.js +18 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -12
- package/dist/index.mjs.map +1 -1
- package/example/src/App.tsx +20 -15
- package/example/src/components/Login/index.tsx +1 -1
- package/example/src/pages/User.tsx +2 -2
- package/package.json +1 -1
package/example/src/App.tsx
CHANGED
|
@@ -34,21 +34,26 @@ function App() {
|
|
|
34
34
|
}}
|
|
35
35
|
>
|
|
36
36
|
<Router>
|
|
37
|
-
<div className={`mb-2 p-2 flex gap-2`}>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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) => {
|