chore: minor tweak

This commit is contained in:
AlexAlexandre 2021-12-08 13:09:10 -03:00
parent 0cf9405a65
commit 0694666a21
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ interface IRoomNavBottomFAB {
const NavBottomFAB = ({ y, onPress, isThread }: IRoomNavBottomFAB) => { const NavBottomFAB = ({ y, onPress, isThread }: IRoomNavBottomFAB) => {
const { theme } = useTheme(); const { theme } = useTheme();
const [show, setShow] = useState(false); const [show, setShow] = useState(false);
const handleOnPress = useCallback(() => onPress(), []); // TODO - check this const handleOnPress = useCallback(() => onPress(), []);
const toggle = (v: boolean) => setShow(v); const toggle = (v: boolean) => setShow(v);
useCode( useCode(

View File

@ -138,11 +138,11 @@ interface IRoomViewProps {
export interface IRoomItem { export interface IRoomItem {
id?: string; id?: string;
t: any; t: string;
rid: string; rid: string;
tmid?: string; tmid?: string;
ts: Date; ts: Date;
status?: any; status?: string;
u?: { _id: string }; u?: { _id: string };
loaderItem: { loaderItem: {
t: string; t: string;
@ -153,7 +153,7 @@ export interface IRoomItem {
interface INavToThread { interface INavToThread {
id?: string; id?: string;
tmsg?: string; tmsg?: string;
t?: any; t?: string;
e2e?: string; e2e?: string;
tmid?: string; tmid?: string;
tlm?: string; tlm?: string;