Increase the size and boldness of the timer

This commit is contained in:
Tiago Ribeiro
2024-08-28 14:58:07 +01:00
parent 6fd0b7aef3
commit af9462398a
2 changed files with 65 additions and 66 deletions

View File

@@ -58,7 +58,7 @@ const Timer: React.FC<Props> = ({minTimer, disableTimer, standalone = false}) =>
animate={{scale: warningMode && !disableTimer ? 1.1 : 1}}
transition={{repeat: Infinity, repeatType: "reverse", duration: 0.5, ease: "easeInOut"}}>
<BsStopwatch className="w-6 h-6" />
<span className="text-base font-semibold w-12">
<span className="text-lg font-bold w-12">
{timer > 0 && (
<>
{Math.floor(timer / 60)
@@ -75,6 +75,6 @@ const Timer: React.FC<Props> = ({minTimer, disableTimer, standalone = false}) =>
</motion.div>
</>
);
}
};
export default Timer;

View File

@@ -437,7 +437,6 @@ export default function MasterCorporateDashboard({ user }: Props) {
const { data: stats } = useFilterRecordsByUser<Stat[]>();
const { users, reload } = useUsers();
const { codes } = useCodes(user.id);
const { groups } = useGroups({ admin: user.id, userType: user.type });
const { balance } = useUserBalance();
@@ -447,9 +446,9 @@ export default function MasterCorporateDashboard({ user }: Props) {
),
], [groups, user.id]);
const corporateUserGroups = [
const corporateUserGroups = useMemo(() => [
...new Set(groups.flatMap((g) => g.participants)),
];
], [groups])
const {
assignments,