Page MenuHomePhabricator

D9365.id31650.diff
No OneTemporary

D9365.id31650.diff

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

Mime Type
text/plain
Expires
Sun, Nov 17, 10:33 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2532081
Default Alt Text
D9365.id31650.diff (2 KB)

Event Timeline