Fix file dialog opening when sending chat messages
parent
a90c287989
commit
c908fa8855
|
|
@ -59,7 +59,7 @@ const shareFiles = async (files) =>
|
|||
|
||||
store.dispatch(requestActions.notify({
|
||||
text : 'Torrent successfully created'
|
||||
}))
|
||||
}));
|
||||
|
||||
notifyPeers({
|
||||
magnet : newTorrent.magnetURI
|
||||
|
|
@ -106,7 +106,12 @@ class FileSharing extends Component
|
|||
multiple
|
||||
/>
|
||||
|
||||
<button onClick={this.handleClick}>share file</button>
|
||||
<button
|
||||
type='button'
|
||||
onClick={this.handleClick}
|
||||
>
|
||||
share file
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ const chatmessages = (state = [], action) =>
|
|||
|
||||
case 'ADD_NEW_USER_FILE':
|
||||
{
|
||||
const { file } = action.payload;
|
||||
const { file } = action.payload;
|
||||
|
||||
const message = createNewFile(file, 'client', 'Me', undefined);
|
||||
|
||||
|
|
|
|||
|
|
@ -44,5 +44,3 @@ export const store = createStore(
|
|||
undefined,
|
||||
enhancer
|
||||
);
|
||||
|
||||
console.log(store);
|
||||
Loading…
Reference in New Issue