Skip to content

Commit

Permalink
fix: improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Jan 7, 2025
1 parent 3f6ee20 commit 56c34ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
17 changes: 8 additions & 9 deletions app/login/components/profile-content-tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { TabContext, TabList, TabPanel } from "@mui/lab";
import { Box, Tab, Theme, useTheme } from "@mui/material";
import { Box, Tab, Theme } from "@mui/material";
import { makeStyles } from "@mui/styles";
import clsx from "clsx";
import groupBy from "lodash/groupBy";
Expand All @@ -12,6 +12,11 @@ import { useRootStyles } from "@/login/utils";
import useEvent from "@/utils/use-event";

const useStyles = makeStyles<Theme>((theme) => ({
section: {
borderBottom: 1,
borderColor: "divider",
marginTop: theme.spacing(6),
},
tabList: {
minHeight: "fit-content",

Expand Down Expand Up @@ -46,7 +51,7 @@ export const ProfileContentTabs = (props: ProfileContentTabsProps) => {
const handleChange = useEvent((_: React.SyntheticEvent, v: string) => {
setValue(v);
});
const theme = useTheme();

const rootClasses = useRootStyles();
const classes = useStyles();

Expand All @@ -66,13 +71,7 @@ export const ProfileContentTabs = (props: ProfileContentTabsProps) => {
<TabContext value={value}>
<Box className={clsx(rootClasses.section)}>
<Box className={rootClasses.sectionContent}>
<Box
sx={{
borderBottom: 1,
borderColor: "divider",
marginTop: theme.spacing(6),
}}
>
<Box className={classes.section}>
<TabList className={classes.tabList} onChange={handleChange}>
<Tab
className={classes.tab}
Expand Down
1 change: 1 addition & 0 deletions app/login/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const useRootStyles = makeStyles<Theme>((theme) => ({
margin: "0 auto",
},
noTooltip: {
// Disable native tooltip in Safari
"&::after": {
content: "''",
display: "block",
Expand Down

0 comments on commit 56c34ae

Please sign in to comment.