feat(hackathon): update UI

- Update dashboard, onboarding user, edit profile, and team layout
  to make it more consistent
This commit is contained in:
Hafid Nur
2025-11-26 15:51:38 +07:00
parent 7e385c6385
commit cb09709800
11 changed files with 247 additions and 100 deletions
+3 -3
View File
@@ -32,9 +32,9 @@ type TInputProps = Omit<
const sizeClasses: Record<TInputSize, { textSize: string; iconSize: string }> =
{
sm: { textSize: 'text-[10px] max-h-[28px]', iconSize: 'text-[10px]' },
md: { textSize: 'text-[12px] max-h-[30px]', iconSize: 'text-[12px]' },
lg: { textSize: 'text-[15px] max-h-[34px]', iconSize: 'text-[15px]' },
sm: { textSize: 'text-[10px] h-[28px]', iconSize: 'text-[10px]' },
md: { textSize: 'text-[12px] h-[30px]', iconSize: 'text-[12px]' },
lg: { textSize: 'text-[15px] h-[34px]', iconSize: 'text-[15px]' },
};
const disabledClass = 'opacity-50 hover:border-neutral-200 cursor-not-allowed';
@@ -25,15 +25,15 @@ export type TInputFieldProps = Omit<
const sizeClasses: Record<TInputSize, { label: string; helperText: string }> = {
lg: {
label: 'text-p3 font-medium',
label: 'text-label1 font-medium',
helperText: 'text-label3 font-normal',
},
md: {
label: 'text-label1 font-medium',
label: 'text-label2 font-medium',
helperText: 'text-label2 font-normal',
},
sm: {
label: 'text-label2 font-medium',
label: 'text-label3 font-medium',
helperText: 'text-label2 font-normal',
},
};
@@ -40,6 +40,7 @@ export const ControlledInputField = <T extends FieldValues>(
{...inputProps}
onChange={handleChange}
isRequired={props.isRequired}
size={props.size}
/>
);
};