mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-22 06:28:42 -04:00
Fix styling for OfflineNotice in ObsDetails photos (#2541)
This commit is contained in:
committed by
GitHub
parent
03884dc3c0
commit
2c65d2fa3f
@@ -2,7 +2,7 @@
|
||||
|
||||
import classnames from "classnames";
|
||||
import { ActivityIndicator, OfflineNotice } from "components/SharedComponents";
|
||||
import { Image, Pressable } from "components/styledComponents";
|
||||
import { Image, Pressable, View } from "components/styledComponents";
|
||||
import type { Node } from "react";
|
||||
import React, { useState } from "react";
|
||||
import Photo from "realmModels/Photo";
|
||||
@@ -92,10 +92,16 @@ const PhotoContainer = ( { photo, onPress, style }: Props ): Node => {
|
||||
{renderLoadingIndicator( )}
|
||||
{image}
|
||||
{loadSuccess === false && (
|
||||
<OfflineNotice
|
||||
onPress={( ) => setLoadSuccess( null )}
|
||||
color="white"
|
||||
/>
|
||||
<View className={classnames(
|
||||
"h-72",
|
||||
"w-screen"
|
||||
)}
|
||||
>
|
||||
<OfflineNotice
|
||||
onPress={( ) => setLoadSuccess( null )}
|
||||
color="white"
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
</Pressable>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user