diff --git a/apps/marketing/package.json b/apps/marketing/package.json index 8ee8d3808..11d72ee9f 100644 --- a/apps/marketing/package.json +++ b/apps/marketing/package.json @@ -31,7 +31,7 @@ "react-confetti": "^6.1.0", "react-dom": "18.2.0", "react-hook-form": "^7.43.9", - "react-icons": "^4.8.0", + "react-icons": "^4.11.0", "recharts": "^2.7.2", "sharp": "0.32.5", "typescript": "5.1.6", diff --git a/apps/marketing/src/components/(marketing)/callout.tsx b/apps/marketing/src/components/(marketing)/callout.tsx index 2427337c7..72ae3907b 100644 --- a/apps/marketing/src/components/(marketing)/callout.tsx +++ b/apps/marketing/src/components/(marketing)/callout.tsx @@ -2,8 +2,8 @@ import Link from 'next/link'; -import { Github } from 'lucide-react'; import { usePlausible } from 'next-plausible'; +import { LuGithub } from 'react-icons/lu'; import { Button } from '@documenso/ui/primitives/button'; @@ -52,7 +52,7 @@ export const Callout = ({ starCount }: CalloutProps) => { onClick={() => event('view-github')} > diff --git a/apps/marketing/src/components/(marketing)/mobile-navigation.tsx b/apps/marketing/src/components/(marketing)/mobile-navigation.tsx index 3379d9789..c9bd07631 100644 --- a/apps/marketing/src/components/(marketing)/mobile-navigation.tsx +++ b/apps/marketing/src/components/(marketing)/mobile-navigation.tsx @@ -4,7 +4,9 @@ import Image from 'next/image'; import Link from 'next/link'; import { motion, useReducedMotion } from 'framer-motion'; -import { Github, MessagesSquare, Twitter } from 'lucide-react'; +import { FaXTwitter } from 'react-icons/fa6'; +import { LiaDiscord } from 'react-icons/lia'; +import { LuGithub } from 'react-icons/lu'; import { Sheet, SheetContent } from '@documenso/ui/primitives/sheet'; @@ -111,7 +113,7 @@ export const MobileNavigation = ({ isMenuOpen, onMenuOpenChange }: MobileNavigat target="_blank" className="text-foreground hover:text-foreground/80" > - + - + - + diff --git a/apps/web/package.json b/apps/web/package.json index 347a39d35..8ed19aaf4 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -36,7 +36,7 @@ "react-dom": "18.2.0", "react-dropzone": "^14.2.3", "react-hook-form": "^7.43.9", - "react-icons": "^4.8.0", + "react-icons": "^4.11.0", "react-rnd": "^10.4.1", "sharp": "0.32.5", "ts-pattern": "^5.0.5", diff --git a/apps/web/src/app/(signing)/sign/[token]/complete/share-button.tsx b/apps/web/src/app/(signing)/sign/[token]/complete/share-button.tsx index caa27cc50..c76d3d7c5 100644 --- a/apps/web/src/app/(signing)/sign/[token]/complete/share-button.tsx +++ b/apps/web/src/app/(signing)/sign/[token]/complete/share-button.tsx @@ -2,7 +2,8 @@ import { HTMLAttributes, useState } from 'react'; -import { Copy, Share, Twitter } from 'lucide-react'; +import { Copy, Share } from 'lucide-react'; +import { FaXTwitter } from 'react-icons/fa6'; import { generateTwitterIntent } from '@documenso/lib/universal/generate-twitter-intent'; import { trpc } from '@documenso/trpc/react'; @@ -125,7 +126,7 @@ export const ShareButton = ({ token, documentId }: ShareButtonProps) => { diff --git a/apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx b/apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx index f43e3507a..d699dea4b 100644 --- a/apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx +++ b/apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx @@ -4,7 +4,6 @@ import Link from 'next/link'; import { CreditCard, - Github, Key, LogOut, User as LucideUser, @@ -16,6 +15,7 @@ import { } from 'lucide-react'; import { signOut } from 'next-auth/react'; import { useTheme } from 'next-themes'; +import { LuGithub } from 'react-icons/lu'; import { useFeatureFlags } from '@documenso/lib/client-only/providers/feature-flag'; import { isAdmin } from '@documenso/lib/next-auth/guards/is-admin'; @@ -130,7 +130,7 @@ export const ProfileDropdown = ({ user }: ProfileDropdownProps) => { - + Star on Github diff --git a/apps/web/src/components/forms/password.tsx b/apps/web/src/components/forms/password.tsx index 8b6a58a06..5df5005f1 100644 --- a/apps/web/src/components/forms/password.tsx +++ b/apps/web/src/components/forms/password.tsx @@ -20,6 +20,7 @@ import { FormErrorMessage } from '../form/form-error-message'; export const ZPasswordFormSchema = z .object({ + currentPassword: z.string().min(6).max(72), password: z.string().min(6).max(72), repeatedPassword: z.string().min(6).max(72), }) @@ -40,6 +41,7 @@ export const PasswordForm = ({ className }: PasswordFormProps) => { const [showPassword, setShowPassword] = useState(false); const [showConfirmPassword, setShowConfirmPassword] = useState(false); + const [showCurrentPassword, setShowCurrentPassword] = useState(false); const { register, @@ -48,6 +50,7 @@ export const PasswordForm = ({ className }: PasswordFormProps) => { formState: { errors, isSubmitting }, } = useForm({ values: { + currentPassword: '', password: '', repeatedPassword: '', }, @@ -56,9 +59,10 @@ export const PasswordForm = ({ className }: PasswordFormProps) => { const { mutateAsync: updatePassword } = trpc.profile.updatePassword.useMutation(); - const onFormSubmit = async ({ password }: TPasswordFormSchema) => { + const onFormSubmit = async ({ currentPassword, password }: TPasswordFormSchema) => { try { await updatePassword({ + currentPassword, password, }); @@ -92,6 +96,39 @@ export const PasswordForm = ({ className }: PasswordFormProps) => { className={cn('flex w-full flex-col gap-y-4', className)} onSubmit={handleSubmit(onFormSubmit)} > +
+ + +
+ + + +
+ + +