new song structure
This commit is contained in:
@@ -27,6 +27,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
|
||||
const hasShownErrorAlert = useRef(false);
|
||||
const { setIsLoading } = useMinuit();
|
||||
const { updateProjectData } = useUser();
|
||||
const progressValue = Math.max(0, Math.min(100, Math.round(progress)));
|
||||
|
||||
// Reset when becomes active
|
||||
useEffect(() => {
|
||||
@@ -301,7 +302,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
|
||||
: "Ton texte est\nen cours de création"}
|
||||
</Text>
|
||||
<View style={{ alignItems: "center", gap: 16 }}>
|
||||
<ProgressBar gradient progress={progress} />
|
||||
<ProgressBar gradient progress={progressValue} />
|
||||
<Text
|
||||
style={{
|
||||
fontSize: 14,
|
||||
@@ -309,7 +310,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
|
||||
fontFamily: FONT_FAMILY.InterRegular,
|
||||
}}
|
||||
>
|
||||
{progress}%
|
||||
{progressValue}%
|
||||
</Text>
|
||||
</View>
|
||||
{!saved && result && !error && (
|
||||
|
||||
Reference in New Issue
Block a user