Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3295909
D9365.id31672.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D9365.id31672.diff
View Options
diff --git a/lib/types/avatar-types.js b/lib/types/avatar-types.js
--- a/lib/types/avatar-types.js
+++ b/lib/types/avatar-types.js
@@ -77,3 +77,5 @@
+avatar?: ?ClientAvatar,
...
};
+
+export type AvatarSize = 'XS' | 'S' | 'M' | 'L' | 'XL';
diff --git a/native/avatars/avatar.react.js b/native/avatars/avatar.react.js
--- a/native/avatars/avatar.react.js
+++ b/native/avatars/avatar.react.js
@@ -3,12 +3,13 @@
import * as React from 'react';
import { View, Text, StyleSheet } from 'react-native';
-import type { ResolvedClientAvatar } from 'lib/types/avatar-types.js';
+import type {
+ ResolvedClientAvatar,
+ AvatarSize,
+} from 'lib/types/avatar-types.js';
import Multimedia from '../media/multimedia.react.js';
-export type AvatarSize = 'XS' | 'S' | 'M' | 'L' | 'XL';
-
type Props = {
+avatarInfo: ResolvedClientAvatar,
+size: AvatarSize,
diff --git a/native/avatars/thread-avatar.react.js b/native/avatars/thread-avatar.react.js
--- a/native/avatars/thread-avatar.react.js
+++ b/native/avatars/thread-avatar.react.js
@@ -7,6 +7,7 @@
useENSResolvedAvatar,
} from 'lib/shared/avatar-utils.js';
import { getSingleOtherUser } from 'lib/shared/thread-utils.js';
+import type { AvatarSize } from 'lib/types/avatar-types.js';
import { threadTypes } from 'lib/types/thread-types-enum.js';
import type {
RawThreadInfo,
@@ -14,7 +15,7 @@
ResolvedThreadInfo,
} from 'lib/types/thread-types.js';
-import Avatar, { type AvatarSize } from './avatar.react.js';
+import Avatar from './avatar.react.js';
import { useSelector } from '../redux/redux-utils.js';
type Props = {
diff --git a/native/avatars/user-avatar.react.js b/native/avatars/user-avatar.react.js
--- a/native/avatars/user-avatar.react.js
+++ b/native/avatars/user-avatar.react.js
@@ -6,9 +6,12 @@
getAvatarForUser,
useENSResolvedAvatar,
} from 'lib/shared/avatar-utils.js';
-import type { GenericUserInfoWithAvatar } from 'lib/types/avatar-types.js';
+import type {
+ GenericUserInfoWithAvatar,
+ AvatarSize,
+} from 'lib/types/avatar-types.js';
-import Avatar, { type AvatarSize } from './avatar.react.js';
+import Avatar from './avatar.react.js';
import { useSelector } from '../redux/redux-utils.js';
type Props =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 11:49 PM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2532081
Default Alt Text
D9365.id31672.diff (2 KB)
Attached To
Mode
D9365: [lib/native] lift AvatarSize type into lib
Attached
Detach File
Event Timeline
Log In to Comment