Skip to content

Commit

Permalink
Update helper-plugin.md (#2244)
Browse files Browse the repository at this point in the history
Change sequence of lines
  • Loading branch information
Patryk0494 authored Sep 30, 2024
1 parent 606ca1c commit ebf48f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ const MyProtectedPage = () => {
import { Page } from '@strapi/strapi/admin';

const MyProtectedPage = () => {
<Page.Protect permissions={[action: 'plugin::my-plugin.read']}>
return (
</Page.Protect>
<Page.Protect permissions={[action: 'plugin::my-plugin.read']}>
<MyPage />
</Page.Protect>
);
};
```
Expand Down

0 comments on commit ebf48f6

Please sign in to comment.