mirror of
https://github.com/mue/mue.git
synced 2026-07-15 04:53:48 +02:00
refactor: Convert pure components to functional components
Co-authored-by: David Ralph <me@davidcralph.co.uk> Co-authored-by: Isaac <contact@eartharoid.me>
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
import variables from 'config/variables';
|
||||
import { memo } from 'react';
|
||||
import Tabs from 'components/Elements/MainModal/backend/Tabs';
|
||||
|
||||
import Added from '../../marketplace/views/Added';
|
||||
import Create from '../../marketplace/views/Create';
|
||||
|
||||
function Addons(props) {
|
||||
return (
|
||||
<Tabs changeTab={(type) => props.changeTab(type)} current="addons" modalClose={props.modalClose}>
|
||||
{
|
||||
/*<Tabs changeTab={(type) => props.changeTab(type)} current="addons" modalClose={props.modalClose}>
|
||||
<div label={variables.getMessage('modals.main.addons.added')} name="added">
|
||||
<Added />
|
||||
</div>
|
||||
<div label={variables.getMessage('modals.main.addons.create.title')} name="create">
|
||||
<Create />
|
||||
</div>
|
||||
</Tabs>
|
||||
</Tabs>*/
|
||||
},
|
||||
(
|
||||
<div className="modalTabContent">
|
||||
<Added />
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user