feat: fixes and formatter

This commit is contained in:
2026-01-12 16:01:32 +01:00
parent 85c6084351
commit 11e632acff
353 changed files with 23315 additions and 27361 deletions
+21 -21
View File
@@ -1,29 +1,29 @@
import React, { useState, useGlobal } from "reactn";
import { useKeyboard } from "@react-native-community/hooks";
import React, { useState, useGlobal } from 'reactn'
import { useKeyboard } from '@react-native-community/hooks'
import { responsiveHeight } from "../actions/responsiveSizes.js";
import { responsiveHeight } from '../actions/responsiveSizes.js'
import Page from "../layouts/Page";
import Page from '../layouts/Page'
import ChatInterface, { onSendMessage } from "../components/ChatInterface";
import ChatInput from "../components/ChatInput.js";
import useLayoutType from "../hooks/useLayoutType.js";
import ChatInterface, { onSendMessage } from '../components/ChatInterface'
import ChatInput from '../components/ChatInput.js'
import useLayoutType from '../hooks/useLayoutType.js'
import { gutters } from "../styles/Style.js";
import { gutters } from '../styles/Style.js'
export default ({ navigation }) => {
const [currentUID] = useGlobal("currentUID");
const [currentProjectID] = useGlobal("currentProjectID");
const [currentUID] = useGlobal('currentUID')
const [currentProjectID] = useGlobal('currentProjectID')
const [message, setMessage] = useState("");
const [message, setMessage] = useState('')
const chatID = `TEST_CHAT_ID`;
const chatID = `TEST_CHAT_ID`
const { isDesktop } = useLayoutType();
const { keyboardShown = false, keyboardHeight = 0 } = useKeyboard();
const { isDesktop } = useLayoutType()
const { keyboardShown = false, keyboardHeight = 0 } = useKeyboard()
return (
<Page headerType={isDesktop ? "NONE" : "BASE"}>
<Page headerType={isDesktop ? 'NONE' : 'BASE'}>
<ChatInterface
hasChatbot
chatID={chatID}
@@ -43,17 +43,17 @@ export default ({ navigation }) => {
setMessage,
chatID,
customPayload: { ...customPayload },
});
})
}}
placeholder={"Laissez un commentaire..."}
placeholder={'Laissez un commentaire...'}
containerStyle={{
position: "absolute",
position: 'absolute',
bottom: gutters * 6 + (keyboardShown ? keyboardHeight : 0),
right: 0,
left: 0,
width: "auto",
width: 'auto',
}}
/>
</Page>
);
};
)
}