code cleanup

This commit is contained in:
canove
2020-08-06 18:50:33 -03:00
parent bfd5c4f1a3
commit 5929c1bc3f
4 changed files with 754 additions and 714 deletions

View File

@@ -0,0 +1,18 @@
import React from "react";
const TabPanel = ({ children, value, name, ...rest }) => {
if (value === name) {
return (
<div
role="tabpanel"
id={`simple-tabpanel-${name}`}
aria-labelledby={`simple-tab-${name}`}
{...rest}
>
<>{children}</>
</div>
);
} else return null;
};
export default TabPanel;