mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 16:22:44 +00:00
destructure props as per usual
This commit is contained in:
@@ -13,7 +13,14 @@ const HelpNavItem = require('../../navbar/help.navitem.jsx');
|
||||
const ErrorNavItem = require('../../navbar/error-navitem.jsx');
|
||||
const VaultNavitem = require('../../navbar/vault.navitem.jsx');
|
||||
|
||||
const UserPage = ({ username = '', brews = [], query = '', error = null, ...props })=>{
|
||||
const UserPage = (props)=>{
|
||||
props = {
|
||||
username : '',
|
||||
brews : [],
|
||||
query : '',
|
||||
error : null,
|
||||
...props
|
||||
};
|
||||
|
||||
const [currentError, setCurrentError] = useState(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user