Skip to content

Commit

Permalink
fix lint and tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sworzen1 committed Jun 25, 2024
1 parent 11f45ca commit b17b0fe
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion govtool/frontend/src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { checkIsWalletConnected } from "@utils";
export const Dashboard = () => {
const { isEnabled, stakeKey } = useCardano();
const { isMobile } = useScreenDimension();
const { pathname, hash } = useLocation();
const { pathname } = useLocation();
const divRef = useRef<HTMLDivElement>(null);
const navigate = useNavigate();
const { t } = useTranslation();
Expand Down
15 changes: 10 additions & 5 deletions govtool/frontend/src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { createTheme } from "@mui/material/styles";
import {
cyan, errorRed, orange, primaryBlue, progressYellow, successGreen,
cyan,
errorRed,
orange,
primaryBlue,
progressYellow,
successGreen,
} from "./consts";

export type Theme = typeof theme;
Expand All @@ -21,8 +26,8 @@ export const theme = createTheme({
styleOverrides: {
root: {
borderRadius: `12px !important`,
}
}
},
},
},
MuiInputBase: {
styleOverrides: {
Expand Down Expand Up @@ -52,7 +57,7 @@ export const theme = createTheme({
{
props: { color: "default", variant: "filled" },
style: {
backgroundColor: primaryBlue.c50
backgroundColor: primaryBlue.c50,
},
},
{
Expand Down Expand Up @@ -110,7 +115,7 @@ export const theme = createTheme({
MuiPopover: {
defaultProps: {
elevation: 2,
}
},
},
},
typography: {
Expand Down
14 changes: 8 additions & 6 deletions govtool/frontend/src/types/@mui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import {

declare module "@mui/material/styles" {
type BreakpointOverrides = {
xxs: true;
xs: true;
sm: true;
md: true;
lg: true;
xl: true;
values: {
xxs: number;
xs: number;
sm: number;
md: number;
lg: number;
xl: number;
};
};
interface PaletteOptions extends MuiPalette {
accentOrange: string;
Expand Down

0 comments on commit b17b0fe

Please sign in to comment.