Skip to content

Commit

Permalink
fix wrong import (#2319)
Browse files Browse the repository at this point in the history
* fix wrong import

* fix qoutes
  • Loading branch information
Boegie19 authored Dec 16, 2024
1 parent 92d151a commit 1a889de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ If you feel like you need this util, please open an issue on the Strapi reposito
### request

This util has been removed and not replaced.
You can use `useFetchClient` from `@strapi/admin/strapi-admin`.
You can use `useFetchClient` from `@strapi/strapi/admin`.

```tsx
// Before
Expand All @@ -1004,7 +1004,7 @@ import { request } from '@strapi/helper-plugin';
request(`/${pluginId}/settings/config`, { method: 'GET' });

// After
import { useFetchClient } from '@strapi/admin/strapi-admin';
import { useFetchClient } from '@strapi/strapi/admin';

const { get } = useFetchClient();
get(`/${pluginId}/settings/config`);
Expand Down

0 comments on commit 1a889de

Please sign in to comment.