refactor: use display_name for wallpaper name

This commit is contained in:
2024-09-25 20:20:44 +01:00
parent 423db6dc1e
commit f275437fb6
3 changed files with 3 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ export default function HomeScreen() {
}}
>
<Text className="text-white opacity-80">
{item.public_id.replace("wallpaper/", "")}
{item.display_name}
</Text>
</View>
</View>

View File

@@ -16,7 +16,7 @@ export default function WallpaperPage() {
return null;
}
const imageName = selectedWallpaper.public_id.replace("wallpaper/", "");
const imageName = selectedWallpaper.display_name;
async function downloadWallpaper() {
if (!selectedWallpaper) {

View File

@@ -1,6 +1,7 @@
interface ImageAsset {
asset_id: string;
public_id: string;
display_name: string;
format: "jpg" | "png" | "heic";
version: number;
resource_type: "image";