This commit is contained in:
Alex Holliday committed 2025-12-12 10:54:26 -08:00
1 parent 22f7d002fd
commit c9dea5c0ae
23 files changed
+315 -131

No files matched your search

@@ -25,7 +25,6 @@ export const CheckboxInput = forwardRef<HTMLInputElement, CheckboxInputProps>(
icon={<Square size={16} strokeWidth={1.5} />}
checkedIcon={<SquareCheck size={16} strokeWidth={1.5} />}
sx={{
padding: 0,
color: theme.palette.text.secondary,
"&.Mui-checked": {
color: theme.palette.primary.main,
@@ -6,8 +6,10 @@ import { usePost } from "@/hooks/UseApi";
import { useNavigate } from "react-router";
import { useTheme } from "@mui/material/styles";
import { Tooltip } from "@/components/design-elements";
import { useTranslation } from "react-i18next";
export const LogoutSwitch = () => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
const { post } = usePost();
const navigate = useNavigate();
@@ -20,7 +22,7 @@ export const LogoutSwitch = () => {
};
return (
<Tooltip title="Logout" placement="top">
<Tooltip title={t("common.tooltips.logout")} placement="top">
<IconButton
onClick={handleClick}
sx={{
@@ -29,7 +31,7 @@ export const LogoutSwitch = () => {
},
"&:hover svg path, &:hover svg line, &:hover svg polyline, &:hover svg rect, &:hover svg circle":
{
stroke: theme.palette.primary.main,
stroke: theme.palette.primary.main,
},
}}
>
@@ -10,6 +10,7 @@ import { useMemo, useState } from "react";
import { useTheme } from "@mui/material/styles";
import { Tooltip } from "@/components/design-elements";
import { config } from "@/config/index";
import { useTranslation } from "react-i18next";
const DEPLOYMENT_MODE = config.DEPLOYMENT_MODE;
const IS_SAAS = DEPLOYMENT_MODE === "saas";
@@ -18,6 +19,7 @@ export const SettingsSwitch = () => {
const theme = useTheme();
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const open = Boolean(anchorEl);
const { t } = useTranslation();
const handleOpen = (event: React.MouseEvent<HTMLElement>) => {
setAnchorEl(event.currentTarget);
@@ -69,7 +71,7 @@ export const SettingsSwitch = () => {
return (
<>
<Tooltip title="Settings" placement="top">
<Tooltip title={t("common.tooltips.settings")} placement="top">
<IconButton
onClick={handleOpen}
sx={{
+3 -1
View File
@@ -13,8 +13,10 @@ import { useNavigate } from "react-router";
import { useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import { useTheme } from "@mui/material/styles";
import { useTranslation } from "react-i18next";
export const TeamSwitch = () => {
const { t } = useTranslation();
const navigate = useNavigate();
const dispatch = useAppDispatch();
const theme = useTheme();
@@ -49,7 +51,7 @@ export const TeamSwitch = () => {
return (
<>
<Tooltip title="Teams" placement="top">
<Tooltip title={t("common.tooltips.teams")} placement="top">
<IconButton
onClick={handleOpen}
sx={{
+1 -1
View File
@@ -17,7 +17,7 @@ export const ThemeSwitch = () => {
};
return (
<Tooltip title={t("common.buttons.toggleTheme")} placement="top">
<Tooltip title={t("common.tooltips.toggleTheme")} placement="top">
<IconButton
id="theme-toggle"
onClick={handleChange}