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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user