From a4af980e11c14f90494a8c414bb15aa7cd7dafff Mon Sep 17 00:00:00 2001 From: diced Date: Sun, 16 Oct 2022 14:32:27 -0700 Subject: [PATCH] fix: password strength not showing up on invites (#186) --- src/components/PasswordStrength.tsx | 9 +++++++-- src/pages/invite/[code].tsx | 12 +++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/PasswordStrength.tsx b/src/components/PasswordStrength.tsx index eaa8847..9da5158 100644 --- a/src/components/PasswordStrength.tsx +++ b/src/components/PasswordStrength.tsx @@ -49,10 +49,15 @@ export default function PasswordStrength({ value, setValue, setStrength, ...prop return (
- + 7} /> {checks} diff --git a/src/pages/invite/[code].tsx b/src/pages/invite/[code].tsx index 258cd41..e81d0d4 100644 --- a/src/pages/invite/[code].tsx +++ b/src/pages/invite/[code].tsx @@ -1,7 +1,7 @@ import { GetServerSideProps } from 'next'; import prisma from 'lib/prisma'; import { useState } from 'react'; -import { Button, Card, Center, Group, PasswordInput, Stepper, TextInput } from '@mantine/core'; +import { Box, Button, Card, Center, Group, PasswordInput, Stepper, TextInput } from '@mantine/core'; import useFetch from 'hooks/useFetch'; import PasswordStrength from 'components/PasswordStrength'; import { showNotification } from '@mantine/notifications'; @@ -84,7 +84,13 @@ export default function Invite({ code, title }) { {title} - Invite ({code})
- + ({ + backgroundColor: t.colors.dark[6], + borderRadius: t.radius.sm, + })} + p='md' + > 0}> - +
);