Skip to content

Commit

Permalink
build(blog-react-admin-mantine): fix build error with codemod
Browse files Browse the repository at this point in the history
  • Loading branch information
yildirayunlu committed Feb 28, 2023
1 parent a1b49c9 commit 2b4002d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
8 changes: 4 additions & 4 deletions examples/blog-react-admin-mantine/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { Refine } from "@pankod/refine-core";
import { MantineInferencer } from "@pankod/refine-inferencer/mantine";

import {
NotificationsProvider,
notificationProvider,
MantineProvider,
Global,
Layout,
LightTheme,
ReadyPage,
ErrorComponent,
AuthPage,
} from "@pankod/refine-mantine";

import { NotificationsProvider } from "@mantine/notifications";
import { MantineProvider, Global } from "@mantine/core";

import { DataProvider } from "@pankod/refine-strapi-v4";
import routerProvider from "@pankod/refine-react-router-v6";

Expand All @@ -29,7 +29,7 @@ function App() {
<Global styles={{ body: { WebkitFontSmoothing: "auto" } }} />
<NotificationsProvider position="top-right">
<Refine
authProvider={authProvider}
legacyAuthProvider={authProvider}
dataProvider={DataProvider(API_URL + `/api`, axiosInstance)}
notificationProvider={notificationProvider}
Layout={Layout}
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-react-admin-mantine/src/authProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AuthProvider } from "@pankod/refine-core";
import { LegacyAuthProvider as AuthProvider } from "@pankod/refine-core";
import { AuthHelper } from "@pankod/refine-strapi-v4";

import { TOKEN_KEY, API_URL } from "./constants";
Expand Down
10 changes: 3 additions & 7 deletions examples/blog-react-admin-mantine/src/pages/posts/create.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {
Create,
useForm,
TextInput,
useSelect,
Select,
} from "@pankod/refine-mantine";
import { Create, useForm, useSelect } from "@pankod/refine-mantine";

import { TextInput, Select } from "@mantine/core";

import { ICategory } from "interfaces";

Expand Down
10 changes: 3 additions & 7 deletions examples/blog-react-admin-mantine/src/pages/posts/edit.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {
Edit,
useForm,
TextInput,
Select,
useSelect,
} from "@pankod/refine-mantine";
import { Edit, useForm, useSelect } from "@pankod/refine-mantine";

import { TextInput, Select } from "@mantine/core";

import { ICategory } from "interfaces";

Expand Down
5 changes: 2 additions & 3 deletions examples/blog-react-admin-mantine/src/pages/posts/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import { IResourceComponentsProps } from "@pankod/refine-core";
import { useTable, ColumnDef, flexRender } from "@pankod/refine-react-table";
import {
List,
Table,
Pagination,
DateField,
CreateButton,
EditButton,
Group,
DeleteButton,
} from "@pankod/refine-mantine";

import { Table, Pagination, Group } from "@mantine/core";

export const PostList: React.FC<IResourceComponentsProps> = () => {
const columns = React.useMemo<ColumnDef<any>[]>(
() => [
Expand Down

0 comments on commit 2b4002d

Please sign in to comment.