mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-26 15:42:57 +00:00
Move clearError to common hook
This commit is contained in:
@@ -156,11 +156,6 @@ const NewPage = (props)=>{
|
||||
return <Nav.item className='save saved'>saved</Nav.item>;
|
||||
};
|
||||
|
||||
const clearError = ()=>{
|
||||
setError(null);
|
||||
setIsSaving(false);
|
||||
};
|
||||
|
||||
const renderNavbar = ()=>(
|
||||
<Navbar>
|
||||
<Nav.section>
|
||||
@@ -185,6 +180,7 @@ const NewPage = (props)=>{
|
||||
resetWarnUnsavedTimer,
|
||||
handleSplitMove,
|
||||
handleBrewChange,
|
||||
clearError,
|
||||
trySave
|
||||
} = useCommonEditPageFunctions({
|
||||
saveGoogle,
|
||||
|
||||
Reference in New Issue
Block a user