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:
alexsparkes
2024-06-14 18:51:36 +01:00
parent 0f9393d3e6
commit 4747dea06b
37 changed files with 1718 additions and 1849 deletions

View File

@@ -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>
)
);
}