init repo
This commit is contained in:
7
src/providers/data-provider/index.ts
Normal file
7
src/providers/data-provider/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import dataProviderSimpleRest from "@refinedev/simple-rest";
|
||||
|
||||
const API_URL = "https://api.fake-rest.refine.dev";
|
||||
|
||||
export const dataProvider = dataProviderSimpleRest(API_URL);
|
||||
16
src/providers/devtools/index.tsx
Normal file
16
src/providers/devtools/index.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
DevtoolsPanel,
|
||||
DevtoolsProvider as DevtoolsProviderBase,
|
||||
} from "@refinedev/devtools";
|
||||
import React from "react";
|
||||
|
||||
export const DevtoolsProvider = (props: React.PropsWithChildren) => {
|
||||
return (
|
||||
<DevtoolsProviderBase>
|
||||
{props.children}
|
||||
<DevtoolsPanel />
|
||||
</DevtoolsProviderBase>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user