Fix Task: #64
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { View, Dimensions } from "react-native";
|
||||
import { View, Dimensions, Platform } from "react-native";
|
||||
import React, { useMemo, useRef, useState } from "react";
|
||||
import Page from "../../layouts/Page";
|
||||
import MusicLandHeader from "../../components/MusicLandHeader";
|
||||
@@ -73,7 +73,8 @@ const CreateLyricsWithAi = () => {
|
||||
setStyle(sel.style);
|
||||
if (!otherStyle && typeof sel.otherStyle === "string")
|
||||
setOtherStyle(sel.otherStyle);
|
||||
if (!audience && typeof sel.audience === "string") setAudience(sel.audience);
|
||||
if (!audience && typeof sel.audience === "string")
|
||||
setAudience(sel.audience);
|
||||
|
||||
// Structure choisie (string) si déjà enregistrée dans selections
|
||||
if (structure == null && typeof sel.structure === "string" && sel.structure)
|
||||
@@ -216,7 +217,11 @@ const CreateLyricsWithAi = () => {
|
||||
}, [selectedIndex, parentLayout?.height]);
|
||||
|
||||
return (
|
||||
<Page headerType="NONE">
|
||||
<Page
|
||||
headerType="NONE"
|
||||
behavior={Platform.OS === "ios" ? "padding" : "height"}
|
||||
keyboardVerticalOffset={Platform.OS === "ios" ? 64 : 100}
|
||||
>
|
||||
<MusicLandHeader onPressBack={onPressBack} progress={progress} />
|
||||
<View
|
||||
style={{
|
||||
@@ -312,8 +317,8 @@ const CreateLyricsWithAi = () => {
|
||||
(Array.isArray(customStructure)
|
||||
? customStructure
|
||||
: Array.isArray(selectedProject?.config?.structure)
|
||||
? selectedProject.config.structure
|
||||
: [])
|
||||
? selectedProject.config.structure
|
||||
: [])
|
||||
}
|
||||
onChange={setCustomStructure}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user