@openpeepshq/react 0.9.22 → 0.9.23

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.
@@ -80,7 +80,9 @@ export function Welcome() {
80
80
  return (_jsxs("div", { className: "relative col-span-3 min-h-[90vh] rounded-md bg-left-bottom bg-no-repeat p-6 pt-4", children: [_jsx("h1", { className: "mt-8 flex pb-4 text-5xl font-bold", children: t('welcome.heading', {
81
81
  defaultValue: 'Welcome to {{name}}',
82
82
  name: communityName,
83
- }) }), _jsx("div", { className: "text-left", children: _jsx(Markdown, { source: welcomePage }) }), _jsx("div", { className: "my-4 text-3xl font-bold", children: t('welcome.completeSetup', { defaultValue: 'Complete account setup' }) }), _jsx(AccessDeniedLoader, { queries: [postsQuery], children: items.map((item) => (_jsxs("div", { "data-testid": `welcome-checklist-${item.key}`, className: "mb-2 flex w-full cursor-pointer flex-row items-center justify-between rounded-md px-1 py-2", onClick: () => {
83
+ }) }), _jsx("div", { className: "text-left", children: _jsx(Markdown, { source: welcomePage }) }), !account?.emailValidated ? (_jsx("div", { className: "my-4", children: t('auth.register.verificationReminder', {
84
+ defaultValue: "We've sent you a verification email. Check your inbox and click the link to verify your address.",
85
+ }) })) : null, _jsx("div", { className: "my-4 text-3xl font-bold", children: t('welcome.completeSetup', { defaultValue: 'Complete account setup' }) }), _jsx(AccessDeniedLoader, { queries: [postsQuery], children: items.map((item) => (_jsxs("div", { "data-testid": `welcome-checklist-${item.key}`, className: "mb-2 flex w-full cursor-pointer flex-row items-center justify-between rounded-md px-1 py-2", onClick: () => {
84
86
  if (item.action)
85
87
  item.action();
86
88
  else if (item.route)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpeepshq/react",
3
- "version": "0.9.22",
3
+ "version": "0.9.23",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -132,6 +132,15 @@ export function Welcome() {
132
132
  <Markdown source={welcomePage} />
133
133
  </div>
134
134
 
135
+ {!account?.emailValidated ? (
136
+ <div className="my-4">
137
+ {t('auth.register.verificationReminder', {
138
+ defaultValue:
139
+ "We've sent you a verification email. Check your inbox and click the link to verify your address.",
140
+ })}
141
+ </div>
142
+ ) : null}
143
+
135
144
  <div className="my-4 text-3xl font-bold">
136
145
  {t('welcome.completeSetup', { defaultValue: 'Complete account setup' })}
137
146
  </div>