Visual edit in Lovable

Edited UI in Lovable
This commit is contained in:
gpt-engineer-app[bot]
2025-03-18 14:35:16 +00:00
parent 75dc157d15
commit ab3bcbdc63
2 changed files with 6 additions and 15 deletions

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,34 +101,30 @@ const AppVersionInfo: React.FC<AppVersionInfoProps> = ({
}
}
}, [fetchVersionInfo, error, loading, editable]);
if (editable) {
return <div className={className}>
<div className="space-y-3">
<div>
<Label htmlFor="versionName" className="text-gray-600"> </Label>
<div className="p-2 text-base mt-1">
<div className="p-2 text-base mt-1 py-0">
{editableVersionName}
</div>
</div>
<div>
<Label htmlFor="buildNumber" className="text-gray-600"> </Label>
<div className="p-2 text-base mt-1">
<div className="p-2 text-base mt-1 py-0">
{editableBuildNumber}
</div>
</div>
<div>
<Label htmlFor="notes" className="text-gray-600"> </Label>
<div className="p-2 text-base mt-1">
. .
</div>
<div className="p-2 text-base mt-1 py-0">The first build</div>
</div>
</div>
</div>;
}
return <div className={className}>
{loading ? <div className="py-1 text-center">
<p className="text-sm text-gray-400 animate-pulse"> ...</p>
@@ -146,5 +139,4 @@ const AppVersionInfo: React.FC<AppVersionInfoProps> = ({
</div>}
</div>;
};
export default AppVersionInfo;

View File

@@ -106,7 +106,7 @@ const Settings = () => {
<div className="mt-10 border-t border-gray-200 pt-4">
<div>
<h2 className="text-sm font-medium text-gray-500 mb-2 px-2"> </h2>
<AppVersionInfo showDevInfo={true} editable={true} />
</div>
@@ -118,5 +118,4 @@ const Settings = () => {
<NavBar />
</div>;
};
export default Settings;