@@ -258,7 +261,12 @@ const UserGeneralSettings: React.FC = () => {
id="email"
name="email"
type="text"
- placeholder={user?.email}
+ placeholder="example@domain.com"
+ className={
+ user?.warnings.find((w) => w === 'userEmailRequired')
+ ? 'border-2 border-red-400 focus:border-blue-600'
+ : ''
+ }
/>
{errors.email && touched.email && (
diff --git a/src/hooks/useUser.ts b/src/hooks/useUser.ts
index 223cea326..4880a6315 100644
--- a/src/hooks/useUser.ts
+++ b/src/hooks/useUser.ts
@@ -13,6 +13,7 @@ export type { PermissionCheckOptions };
export interface User {
id: number;
+ warnings: string[];
plexUsername?: string;
username?: string;
displayName: string;
diff --git a/tailwind.config.js b/tailwind.config.js
index d1d023c01..aeb8b7f4f 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -2,6 +2,7 @@
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
+ important: true,
mode: 'jit',
content: ['./src/pages/**/*.{ts,tsx}', './src/components/**/*.{ts,tsx}'],
theme: {
diff --git a/yarn.lock b/yarn.lock
index b32edc909..064253471 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1622,6 +1622,13 @@
dependencies:
glob "7.1.7"
+"@next/eslint-plugin-next@^12.1.6":
+ version "12.1.6"
+ resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.1.6.tgz#dde3f98831f15923b25244588d924c716956292e"
+ integrity sha512-yNUtJ90NEiYFT6TJnNyofKMPYqirKDwpahcbxBgSIuABwYOdkGwzos1ZkYD51Qf0diYwpQZBeVqElTk7Q2WNqw==
+ dependencies:
+ glob "7.1.7"
+
"@next/swc-android-arm64@12.1.0":
version "12.1.0"
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.1.0.tgz#865ba3a9afc204ff2bdeea49dd64d58705007a39"
@@ -4780,6 +4787,11 @@ email-templates@^8.0.10:
nodemailer "^6.7.2"
preview-email "^3.0.5"
+email-validator@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/email-validator/-/email-validator-2.0.4.tgz#b8dfaa5d0dae28f1b03c95881d904d4e40bfe7ed"
+ integrity sha512-gYCwo7kh5S3IDyZPLZf6hSS0MnZT8QmJFqYvbqlDZSbwdZlY6QZWxJ4i/6UhITOJ4XzyI647Bm2MXKCLqnJ4nQ==
+
emoji-regex@^10.0.0:
version "10.0.1"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.0.1.tgz#77180edb279b99510a21b79b19e1dc283d8f3991"