Skip to content

Commit

Permalink
chore: Installed Mantine Library
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsheel12 committed Oct 20, 2024
1 parent 41ff39f commit 4b15109
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 9 deletions.
8 changes: 7 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
"test": "vitest run --coverage"
},
"dependencies": {
"@mantine/carousel": "^7.13.3",
"@mantine/core": "^7.13.3",
"@mantine/hooks": "^7.13.3",
"@tanstack/react-query": "^5.18.1",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"axios": "^1.6.7",
"embla-carousel-react": "7.1.0",
"react": "^18.2.0",
"react-cookies": "^0.1.1",
"react-dom": "^18.2.0",
Expand Down Expand Up @@ -44,7 +48,9 @@
"eslint-plugin-react-refresh": "^0.4.5",
"jest": "^29.7.0",
"jsdom": "^24.1.0",
"postcss": "^8.4.34",
"postcss": "^8.4.47",
"postcss-preset-mantine": "^1.17.0",
"postcss-simple-vars": "^7.0.1",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.0.8",
Expand Down
10 changes: 10 additions & 0 deletions web/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,15 @@ export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
"postcss-preset-mantine": {},
"postcss-simple-vars": {
variables: {
"mantine-breakpoint-xs": "36em",
"mantine-breakpoint-sm": "48em",
"mantine-breakpoint-md": "62em",
"mantine-breakpoint-lg": "75em",
"mantine-breakpoint-xl": "88em",
},
},
},
};
10 changes: 7 additions & 3 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import { useState } from "react";
import { MantineProvider } from "@mantine/core";
import "@mantine/core/styles.css";
import Home from "@pages/Home";
import About from "@pages/About";
import Event from "@pages/Event";
Expand Down Expand Up @@ -33,8 +35,10 @@ const router = createBrowserRouter([
export default function App() {
const [queryClient] = useState(() => new QueryClient());
return (
<QueryClientProvider client={queryClient}>
<RouterProvider router={router} />
</QueryClientProvider>
<MantineProvider>
<QueryClientProvider client={queryClient}>
<RouterProvider router={router} />
</QueryClientProvider>
</MantineProvider>
);
}
Loading

0 comments on commit 4b15109

Please sign in to comment.