Skip to content

Commit

Permalink
Merge pull request #69 from fossnsbm/development
Browse files Browse the repository at this point in the history
refactor: Registration form
  • Loading branch information
Lithara authored May 15, 2024
2 parents bd49be5 + a4ac5f0 commit ba54475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/components/register/all-reg-forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function AllRegForms() {
.max(50)
.refine(
(value) =>
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%?&])[A-Za-z\d@$!%?&]{8,50}$/.test(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%?&*+-_#])[A-Za-z\d@$!%?&*+-_#]{8,50}$/.test(
value
),
{
Expand Down Expand Up @@ -180,10 +180,7 @@ export default function AllRegForms() {
render={({ field }) => (
<FormItem className={style.formStyle}>
<FormControl>
<Input
placeholder="TEAM LEADERS'S UNIVERSITY EMAIL*"
{...field}
/>
<Input placeholder="TEAM LEADERS'S NSBM MAIL*" {...field} />
</FormControl>
<FormMessage className="text-xl" />
</FormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<input
type={type}
className={cn(
"font-mono font-bold flex transition duration-300 text-[20px] placeholder:text-[#5A270B] text-[#5A270B] py-3 pl-4 text-base md:text-2xl bg-[#FEF3C7] w-[80%] sm:w-[70%] h-[12%] border-[6px] border-[#5A270B] drop-shadow-lg hover:shadow-[0px_0px_0px_0px_rgba(0,0,0,0)] shadow-[6px_6px_0px_0px_rgba(90,39,11,1)] rounded-none ",
"font-mono font-bold flex transition duration-300 text-[20px] placeholder:text-[#5A270B] text-[#5A270B] py-3 pl-4 text-xs md:text-2xl bg-[#FEF3C7] w-[80%] sm:w-[70%] h-[12%] border-[6px] border-[#5A270B] drop-shadow-lg hover:shadow-[0px_0px_0px_0px_rgba(0,0,0,0)] shadow-[6px_6px_0px_0px_rgba(90,39,11,1)] rounded-none ",
className
)}
ref={ref}
Expand Down

0 comments on commit ba54475

Please sign in to comment.