work on team enrollment

This commit is contained in:
yohlo
2025-09-16 09:24:21 -05:00
parent 9a105b30c6
commit cde74a04d5
45 changed files with 1244 additions and 457 deletions

View File

@@ -1,13 +1,13 @@
import { Box } from "@mantine/core"
import { GearIcon } from "@phosphor-icons/react"
import { useNavigate } from "@tanstack/react-router"
import { memo } from "react";
interface SettingButtonProps {
offsetY: number;
to: string;
}
const SettingsButton = ({ offsetY, to }: SettingButtonProps) => {
const SettingsButton = ({ to }: SettingButtonProps) => {
const navigate = useNavigate();
return (
@@ -23,4 +23,4 @@ const SettingsButton = ({ offsetY, to }: SettingButtonProps) => {
);
}
export default SettingsButton;
export default memo(SettingsButton, (prev, next) => prev.to !== next.to);