Skip to content

Commit e017421

Browse files
committed
fix: charter
1 parent 325a8e6 commit e017421

File tree

5 files changed

+88
-128
lines changed

5 files changed

+88
-128
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
/* config options here */
55
};
66

77
export default nextConfig;

platforms/group-charter-manager/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@milkdown/preset-gfm": "^7.15.2",
1616
"@milkdown/react": "^7.15.2",
1717
"@milkdown/theme-nord": "^7.15.2",
18+
"@next/env": "^15.4.7",
1819
"@radix-ui/react-alert-dialog": "^1.1.7",
1920
"@radix-ui/react-dialog": "^1.1.7",
2021
"@radix-ui/react-dropdown-menu": "^2.1.7",
@@ -29,35 +30,35 @@
2930
"@tiptap/starter-kit": "^2.24.0",
3031
"@toast-ui/react-editor": "^3.2.3",
3132
"axios": "^1.6.7",
33+
"class-variance-authority": "^0.7.1",
34+
"clsx": "^2.1.1",
3235
"cmdk": "^1.1.1",
3336
"draft-js": "^0.11.7",
3437
"lucide-react": "^0.453.0",
3538
"marked": "^16.1.1",
39+
"next": "15.4.2",
3640
"qrcode.react": "^4.2.0",
41+
"react": "19.1.0",
42+
"react-dom": "19.1.0",
3743
"react-draft-wysiwyg": "^1.15.0",
44+
"react-hook-form": "^7.55.0",
3845
"react-markdown": "^10.1.0",
3946
"react-markdown-editor-lite": "^1.3.4",
4047
"react-quill": "^2.0.0",
4148
"remark-gfm": "^4.0.1",
42-
"turndown": "^7.2.0",
43-
"class-variance-authority": "^0.7.1",
44-
"clsx": "^2.1.1",
45-
"next": "15.4.2",
46-
"react": "19.1.0",
47-
"react-dom": "19.1.0",
48-
"react-hook-form": "^7.55.0",
4949
"tailwind-merge": "^3.3.1",
5050
"tailwindcss-animate": "^1.0.7",
51+
"turndown": "^7.2.0",
5152
"zod": "^3.24.2"
5253
},
5354
"devDependencies": {
5455
"@eslint/eslintrc": "^3",
5556
"@tailwindcss/postcss": "^4.1.11",
5657
"@types/draft-js": "^0.11.18",
57-
"@types/turndown": "^5.0.5",
5858
"@types/node": "^20",
5959
"@types/react": "^19",
6060
"@types/react-dom": "^19",
61+
"@types/turndown": "^5.0.5",
6162
"eslint": "^9",
6263
"eslint-config-next": "15.4.2",
6364
"tailwindcss": "^4.1.11",

platforms/group-charter-manager/src/components/auth/login-screen.tsx

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,21 @@ export default function LoginScreen() {
7070
};
7171
};
7272

73+
const getAppStoreLink = () => {
74+
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
75+
if (/android/i.test(userAgent)) {
76+
return "https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet";
77+
}
78+
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
79+
return "https://apps.apple.com/in/app/eid-for-w3ds/id6747748667"
80+
}
81+
return "https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet";
82+
};
83+
7384
if (isLoading) {
7485
return (
7586
<div className="flex h-screen items-center justify-center">
76-
<div className="animate-spin rounded-full h-32 w-32 border-b-2 border-gray-900"></div>
87+
<div className="animate-spin rounded-full h-32 w-32 border-b-2 border-gray-900" />
7788
</div>
7889
);
7990
}
@@ -101,15 +112,15 @@ export default function LoginScreen() {
101112
/>
102113
<h1 className="text-3xl font-bold">Group Charter</h1>
103114
</div>
104-
<p class="text-gray-600">
115+
<p className="text-gray-600">
105116
Coordinate your group in the MetaState
106117
</p>
107118
</div>
108119
<div className="bg-white/50 p-8 rounded-lg shadow-lg max-w-md w-full">
109120
<div className="text-center mb-8">
110-
121+
111122
<p className="text-gray-600">
112-
Scan the QR code to login with your W3DS identity
123+
Scan the QR code using your <a href={getAppStoreLink()}><b><u>eID App</u></b></a> to login
113124
</p>
114125
</div>
115126

@@ -142,7 +153,9 @@ export default function LoginScreen() {
142153

143154
<div className="text-center">
144155
<p className="text-sm text-gray-500">
145-
Use your W3DS wallet to scan this QR code and authenticate
156+
<span className="mb-1 block font-bold text-gray-600">The {isMobileDevice() ? "button": "code"} is valid for 60 seconds</span>
157+
<span className="block font-light text-gray-600">Please refresh the page if it expires</span
158+
>
146159
</p>
147160
</div>
148161

@@ -155,13 +168,15 @@ export default function LoginScreen() {
155168
servers.
156169
</div>
157170

158-
<Image
159-
src="/W3DS.svg"
160-
alt="W3DS Logo"
161-
width={50}
162-
height={20}
163-
className="mx-auto mt-5"
164-
/>
171+
<a href="https://metastate.foundation" target="_blank" rel="noopener noreferrer">
172+
<Image
173+
src="/W3DS.svg"
174+
alt="W3DS Logo"
175+
width={50}
176+
height={20}
177+
className="mx-auto mt-5"
178+
/>
179+
</a>
165180
</div>
166181
</div>
167182
);

platforms/pictique/src/routes/(auth)/auth/+page.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@
127127
{/if}
128128

129129
<p class="text-center">
130-
<span class="mb-1 block font-bold text-gray-600">The code is valid for 60 seconds</span>
130+
<span class="mb-1 block font-bold text-gray-600"
131+
>The {isMobileDevice() ? 'button' : 'code'} is valid for 60 seconds</span
132+
>
131133
<span class="block font-light text-gray-600">Please refresh the page if it expires</span
132134
>
133135
</p>

0 commit comments

Comments
 (0)