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">
|
<Text className="text-white opacity-80">
|
||||||
{item.public_id.replace("wallpaper/", "")}
|
{item.display_name}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
@@ -16,7 +16,7 @@ export default function WallpaperPage() {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const imageName = selectedWallpaper.public_id.replace("wallpaper/", "");
|
const imageName = selectedWallpaper.display_name;
|
||||||
|
|
||||||
async function downloadWallpaper() {
|
async function downloadWallpaper() {
|
||||||
if (!selectedWallpaper) {
|
if (!selectedWallpaper) {
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
interface ImageAsset {
|
interface ImageAsset {
|
||||||
asset_id: string;
|
asset_id: string;
|
||||||
public_id: string;
|
public_id: string;
|
||||||
|
display_name: string;
|
||||||
format: "jpg" | "png" | "heic";
|
format: "jpg" | "png" | "heic";
|
||||||
version: number;
|
version: number;
|
||||||
resource_type: "image";
|
resource_type: "image";
|
||||||
|
Reference in New Issue
Block a user