Visual edit in Lovable

Edited UI in Lovable
This commit is contained in:
gpt-engineer-app[bot]
2025-03-21 12:50:03 +00:00
parent 41d8fdcc7c
commit 56aa278f77

View File

@@ -1,14 +1,11 @@
import React, { useCallback, useEffect, useState, useRef } from 'react';
import { getAppVersionInfo, isAndroidPlatform } from '@/utils/platform';
import { Label } from '@/components/ui/label';
interface AppVersionInfoProps {
className?: string;
showDevInfo?: boolean;
editable?: boolean;
}
const AppVersionInfo: React.FC<AppVersionInfoProps> = ({
className,
showDevInfo = true,
@@ -104,7 +101,6 @@ const AppVersionInfo: React.FC<AppVersionInfoProps> = ({
}
}
}, [fetchVersionInfo, error, loading, editable]);
if (editable) {
return <div className={className}>
<div className="space-y-3">
@@ -121,35 +117,23 @@ const AppVersionInfo: React.FC<AppVersionInfoProps> = ({
</div>
<div className="mt-[70px] text-center">
<p className="text-sm text-gray-400 font-semibold">ZELLYY CLOUD</p>
<p className="text-gray-400 font-semibold text-lg my-[70px]">ZELLYY CLOUD</p>
</div>
</div>
</div>;
}
return (
<div className={className}>
{loading ? (
<div className="py-1 text-center">
return <div className={className}>
{loading ? <div className="py-1 text-center">
<p className="text-sm text-gray-400 animate-pulse"> ...</p>
</div>
) : error ? (
<div className="py-1 text-center">
</div> : error ? <div className="py-1 text-center">
<p className="text-sm text-red-500"> </p>
<button onClick={handleRetry} className="text-xs text-blue-500 underline mt-1 px-2 py-0.5 rounded hover:bg-blue-50">
</button>
</div>
) : (
<div className="py-1 text-center">
</div> : <div className="py-1 text-center">
<p className="text-sm">{versionInfo.versionName} (build {versionInfo.buildNumber})</p>
{showDevInfo && versionInfo.versionCode && (
<p className="text-xs text-gray-400 mt-1 font-mono">versionCode: {versionInfo.versionCode}</p>
)}
</div>
)}
</div>
);
{showDevInfo && versionInfo.versionCode && <p className="text-xs text-gray-400 mt-1 font-mono">versionCode: {versionInfo.versionCode}</p>}
</div>}
</div>;
};
export default AppVersionInfo;