Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jan 20, 2025
1 parent beb5d9a commit 69fd3e9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions packages/ra-data-localforage/src/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import React from 'react';
import { Admin, EditGuesser, ListGuesser, Resource } from 'react-admin';
import { Resource } from 'ra-core';
import {
AdminContext,
AdminUI,
EditGuesser,
ListGuesser,
} from 'ra-ui-materialui';
import localforageDataProvider from './index';

export default {
Expand All @@ -18,8 +24,10 @@ export const Basic = () => {
});

return (
<Admin dataProvider={dataProvider}>
<Resource name="posts" list={ListGuesser} edit={EditGuesser} />
</Admin>
<AdminContext dataProvider={dataProvider}>
<AdminUI>
<Resource name="posts" list={ListGuesser} edit={EditGuesser} />
</AdminUI>
</AdminContext>
);
};

0 comments on commit 69fd3e9

Please sign in to comment.