-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚀 v2.0.0 for strapi v4 - first commit
- Loading branch information
1 parent
46d06f6
commit 530cca1
Showing
39 changed files
with
1,579 additions
and
1,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* | ||
* Initializer | ||
* | ||
*/ | ||
|
||
import { useEffect, useRef } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import pluginId from '../../pluginId'; | ||
|
||
const Initializer = ({ setPlugin }) => { | ||
const ref = useRef(); | ||
ref.current = setPlugin; | ||
|
||
useEffect(() => { | ||
ref.current(pluginId); | ||
}, []); | ||
|
||
return null; | ||
}; | ||
|
||
Initializer.propTypes = { | ||
setPlugin: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default Initializer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* | ||
* PluginIcon | ||
* | ||
*/ | ||
|
||
import React from 'react'; | ||
import Puzzle from '@strapi/icons/Puzzle'; | ||
|
||
const PluginIcon = () => <Puzzle />; | ||
|
||
export default PluginIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.