mirror of
https://github.com/RGBCube/cinny
synced 2025-08-01 09:27:46 +00:00
Updated dependencies
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
5b0f95fed9
commit
f628a6c3d6
5 changed files with 94 additions and 188 deletions
|
@ -138,12 +138,12 @@ MessageContent.propTypes = {
|
|||
function MessageEdit({ content, onSave, onCancel }) {
|
||||
const editInputRef = useRef(null);
|
||||
|
||||
function handleKeyDown(e) {
|
||||
const handleKeyDown = (e) => {
|
||||
if (e.keyCode === 13 && e.shiftKey === false) {
|
||||
e.preventDefault();
|
||||
onSave(editInputRef.current.value);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<form className="message__edit" onSubmit={(e) => { e.preventDefault(); onSave(editInputRef.current.value); }}>
|
||||
|
|
|
@ -271,6 +271,7 @@ function RoomViewContent({
|
|||
};
|
||||
|
||||
const handleScrollToLive = () => {
|
||||
trySendingReadReceipt();
|
||||
scroll.from = roomTimeline.timeline.size - scroll.limit - 1;
|
||||
if (scroll.from < 0) scroll.from = 0;
|
||||
scroll.isNewEvent = true;
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
import React from 'react';
|
||||
import {
|
||||
BrowserRouter,
|
||||
} from 'react-router-dom';
|
||||
|
||||
import { isAuthenticated } from '../../client/state/auth';
|
||||
|
||||
|
@ -9,11 +6,7 @@ import Auth from '../templates/auth/Auth';
|
|||
import Client from '../templates/client/Client';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
{ isAuthenticated() ? <Client /> : <Auth />}
|
||||
</BrowserRouter>
|
||||
);
|
||||
return isAuthenticated() ? <Client /> : <Auth />;
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue