Final commit

parent 39585be5
...@@ -42,6 +42,7 @@ const TextTranslate = () => { ...@@ -42,6 +42,7 @@ const TextTranslate = () => {
const [showUnityWebGL, setShowUnityWebGL] = useState(false); const [showUnityWebGL, setShowUnityWebGL] = useState(false);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [showAvatarImage, setShowAvatarImage] = useState(true); const [showAvatarImage, setShowAvatarImage] = useState(true);
const FormSchema = Yup.object().shape({ const FormSchema = Yup.object().shape({
userInputText: Yup.string() userInputText: Yup.string()
...@@ -85,7 +86,7 @@ const TextTranslate = () => { ...@@ -85,7 +86,7 @@ const TextTranslate = () => {
console.error("Request failed with status code:", response.status); console.error("Request failed with status code:", response.status);
} }
resetForm() // resetForm()
setSubmitting(false); setSubmitting(false);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
......
...@@ -173,16 +173,16 @@ const VideoTranslate = () => { ...@@ -173,16 +173,16 @@ const VideoTranslate = () => {
<Button <Button
variant="contained" variant="contained"
style={{ style={{
width: '180px', width: '150px',
height: '50px', height: '40px',
fontSize: '20px', fontSize: '18px',
}} }}
sx={{ sx={{
mb: 3 mb: 3
}} }}
disabled={loading} disabled={loading}
onClick={uploadVideo} onClick={uploadVideo}
endIcon={<TranslationOutlined />} startIcon={<TranslationOutlined />}
> >
Translate Translate
</Button> </Button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment