0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 02:02:43 +00:00

"Refactor notification utils components to use React Hooks instead of createClass"

This commit is contained in:
Víctor Losada Hernández
2024-08-29 00:01:02 +02:00
parent 46882c4fb4
commit 51d3d11bff
3 changed files with 184 additions and 172 deletions

View File

@@ -1,19 +1,16 @@
const React = require('react');
const createClass = require('create-react-class');
const NotificationLookup = require('./notificationLookup/notificationLookup.jsx');
const NotificationAdd = require('./notificationAdd/notificationAdd.jsx');
const NotificationUtils = createClass({
displayName : 'NotificationUtils',
render : function(){
return <>
<NotificationAdd />
<hr />
<NotificationLookup />
</>;
}
});
const NotificationUtils = () => {
return (
<>
<NotificationAdd />
<hr />
<NotificationLookup />
</>
);
};
module.exports = NotificationUtils;