refactor: use display_name for wallpaper name
This commit is contained in:
@@ -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>
|
||||
|
@@ -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) {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
interface ImageAsset {
|
||||
asset_id: string;
|
||||
public_id: string;
|
||||
display_name: string;
|
||||
format: "jpg" | "png" | "heic";
|
||||
version: number;
|
||||
resource_type: "image";
|
||||
|
Reference in New Issue
Block a user