Skip to content

Commit

Permalink
fix: switch adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Sep 1, 2023
1 parent 96054f3 commit 6b99580
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 21 deletions.
52 changes: 38 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@
"@typescript-eslint/parser": "6.4.1",
"@vitejs/plugin-basic-ssl": "1.0.1",
"@vitejs/plugin-react": "4.0.4",
"eslint": "8.48.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-react": "7.33.2",
"husky": "8.0.3",
"prettier": "3.0.2",
"typescript": "5.2.2",
"vite": "4.4.9",
"vite-plugin-checker": "0.6.2",
"vite-tsconfig-paths": "4.2.0",
"vitest": "0.34.3",
"eslint": "8.48.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-react": "7.33.2"
"vitest": "0.34.3"
},
"overrides": {
"semver": "7.5.4",
Expand Down
7 changes: 6 additions & 1 deletion src/auth/views/components/AuthContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ export function AuthContainer({ children, belowCard, aboveCard }: Props) {
return (
<Background>
<LandingPageAppBar />
<Box display="flex" maxWidth="725px" flexDirection="column">
<Box
display="flex"
maxWidth="725px"
minWidth={{ md: "700px" }}
flexDirection="column"
>
{aboveCard}
<PaddedCardContainer>{children}</PaddedCardContainer>
{belowCard}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Date/DateRangePicker.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack, TextField } from "@mui/material";
import { Dispatch } from "react";
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
import { DatePicker, LocalizationProvider } from "@mui/x-date-pickers";
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";

interface Props {
from: Date;
Expand All @@ -17,7 +17,7 @@ export const DateRangePicker = ({
onToChange,
}: Props) => {
return (
<LocalizationProvider dateAdapter={AdapterDateFns}>
<LocalizationProvider dateAdapter={AdapterMoment}>
<Stack direction="row" spacing={1} margin={1}>
<DatePicker
label="From"
Expand Down

0 comments on commit 6b99580

Please sign in to comment.