mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-16 19:02:40 +00:00
Linting
This commit is contained in:
@@ -51,7 +51,6 @@ const NotificationAdd = ()=>{
|
||||
setState((prevState)=>({ ...prevState, searching: true, error: null }));
|
||||
const response = await request.post('/admin/notification/add').send(data);
|
||||
console.log(response.body);
|
||||
const update = { notificationResult: `Notification successfully created.` };
|
||||
|
||||
// Reset form fields
|
||||
dismissKeyRef.current.value = '';
|
||||
@@ -60,7 +59,7 @@ const NotificationAdd = ()=>{
|
||||
|
||||
setState((prevState)=>({
|
||||
...prevState,
|
||||
...update,
|
||||
notificationResult : `Notification successfully created.`,
|
||||
searching : false,
|
||||
}));
|
||||
} catch (error) {
|
||||
@@ -81,7 +80,6 @@ const NotificationAdd = ()=>{
|
||||
Dismiss Key:
|
||||
<input className='fieldInput' type='text' ref={dismissKeyRef} required
|
||||
placeholder='GOOGLEDRIVENOTIF'
|
||||
|
||||
/>
|
||||
</label>
|
||||
|
||||
@@ -102,14 +100,12 @@ const NotificationAdd = ()=>{
|
||||
|
||||
<label className='field'>
|
||||
Start Date:
|
||||
|
||||
<input type='date' className='fieldInput' ref={startAtRef} required/>
|
||||
</label>
|
||||
|
||||
<label className='field'>
|
||||
End Date:
|
||||
<input type='date' className='fieldInput' ref={stopAtRef} required
|
||||
/>
|
||||
<input type='date' className='fieldInput' ref={stopAtRef} required/>
|
||||
</label>
|
||||
|
||||
<div className='notificationResult'>{state.notificationResult}</div>
|
||||
|
||||
Reference in New Issue
Block a user