mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Show offline profile picture in header (#3142)
* Rename file without changes
* Revert "Rename file without changes"
This reverts commit a3de5e100d.
* Rename file without changes
* Refactor InlineUserBase to TS
* Update component Props
* Import as type
* Check if the user displayed is the current user and if so
also display the user image while offline.
* Update src/components/SharedComponents/InlineUser/InlineUserBase.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update InlineUser.test.js
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -17,7 +17,7 @@ jest.mock( "@react-navigation/native", ( ) => {
|
||||
const mockUser = factory( "RemoteUser" );
|
||||
const mockUserWithoutImage = factory( "RemoteUser", { icon_url: null } );
|
||||
|
||||
const snapshotUser = { login: "some_login", icon_url: "some_icon_url" };
|
||||
const snapshotUser = { login: "some_login", icon_url: "some_icon_url", id: 1 };
|
||||
const snapshotUserWithoutImage = { login: "some_login", icon_url: null };
|
||||
|
||||
jest.mock(
|
||||
|
||||
Reference in New Issue
Block a user