@oxy.so/services 14.20.0 → 14.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/ui/components/OxyConsentScreen.js +3 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/PeableButton.js +7 -1
- package/lib/commonjs/ui/components/PeableButton.js.map +1 -1
- package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js +5 -1
- package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +4 -2
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/primitives.js +3 -2
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js +3 -3
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js +4 -4
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js +4 -4
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationTypePicker.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationTypePicker.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +20 -12
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +9 -9
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +13 -9
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/persistedDataVersion.js +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +4 -2
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/PeableButton.js +8 -2
- package/lib/module/ui/components/PeableButton.js.map +1 -1
- package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js +6 -2
- package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +5 -3
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/primitives.js +4 -3
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js +3 -3
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js +4 -4
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaims.js +3 -3
- package/lib/module/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js +4 -4
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationSettings.js +3 -3
- package/lib/module/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationTypePicker.js +3 -3
- package/lib/module/ui/components/organizations/OrganizationTypePicker.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +21 -13
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +10 -10
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +13 -9
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/utils/persistedDataVersion.js +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/accountSettings/AccountCategoriesSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/persistedDataVersion.d.ts +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/accountSettings/AccountCategoriesSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/persistedDataVersion.d.ts +1 -1
- package/package.json +7 -7
- package/src/ui/components/OxyConsentScreen.tsx +10 -3
- package/src/ui/components/PeableButton.tsx +6 -3
- package/src/ui/components/accountSettings/AccountCategoriesSection.tsx +6 -2
- package/src/ui/components/authChooser/AccountsMenuView.tsx +5 -5
- package/src/ui/components/authChooser/primitives.tsx +5 -4
- package/src/ui/components/fileManagement/FileAppAccessSection.tsx +4 -4
- package/src/ui/components/organizations/OrganizationClaimReview.tsx +5 -5
- package/src/ui/components/organizations/OrganizationClaims.tsx +4 -4
- package/src/ui/components/organizations/OrganizationDirectorySearch.tsx +6 -6
- package/src/ui/components/organizations/OrganizationSettings.tsx +5 -5
- package/src/ui/components/organizations/OrganizationTypePicker.tsx +4 -4
- package/src/ui/screens/AvatarCropScreen.tsx +31 -20
- package/src/ui/screens/ProfileScreen.tsx +13 -12
- package/src/ui/screens/UserListScreen.tsx +30 -25
- package/src/ui/utils/persistedDataVersion.ts +1 -1
|
@@ -5,7 +5,7 @@ import { isHttpRequestError } from '@oxy.so/core';
|
|
|
5
5
|
import type { OrganizationClaimReview as OrganizationClaimReviewInput } from '@oxy.so/contracts';
|
|
6
6
|
import { organizationClaimReviewCheck, parseContract } from '@oxy.so/contracts/client';
|
|
7
7
|
import { Button } from '@oxy.so/bloom/button';
|
|
8
|
-
import {
|
|
8
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
9
9
|
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
10
10
|
import { Text } from '@oxy.so/bloom/typography';
|
|
11
11
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
@@ -17,14 +17,14 @@ export function OrganizationClaimReview() {
|
|
|
17
17
|
const { user, canUsePrivateApi } = useOxy();
|
|
18
18
|
const [open, setOpen] = useState(false);
|
|
19
19
|
return (
|
|
20
|
-
<
|
|
21
|
-
<
|
|
20
|
+
<GroupedSection>
|
|
21
|
+
<GroupedSectionItem
|
|
22
22
|
title={t('organizationDirectory.review.title')}
|
|
23
23
|
disabled={!canUsePrivateApi}
|
|
24
24
|
onPress={() => setOpen((value) => !value)}
|
|
25
25
|
/>
|
|
26
26
|
{open && user?.kind === 'personal' && canUsePrivateApi ? <ReviewQueue key={user.id} /> : null}
|
|
27
|
-
</
|
|
27
|
+
</GroupedSection>
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
function ReviewQueue() {
|
|
@@ -78,7 +78,7 @@ function ReviewQueue() {
|
|
|
78
78
|
<View className="gap-space-16 p-space-16">
|
|
79
79
|
{claims.length === 0 ? <Text>{t('organizationDirectory.review.empty')}</Text> : null}
|
|
80
80
|
{claims.map((claim) => (
|
|
81
|
-
<
|
|
81
|
+
<GroupedSectionItem
|
|
82
82
|
key={claim.id}
|
|
83
83
|
title={
|
|
84
84
|
organizations.data?.find((item) => item.requestedAccountId === claim.accountId)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { useInfiniteQuery, useQuery } from '@tanstack/react-query';
|
|
3
3
|
import { Button } from '@oxy.so/bloom/button';
|
|
4
|
-
import {
|
|
4
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
5
5
|
import { Text } from '@oxy.so/bloom/typography';
|
|
6
6
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
7
7
|
import { useI18n } from '../../hooks/useI18n';
|
|
@@ -38,7 +38,7 @@ export function OrganizationClaims() {
|
|
|
38
38
|
});
|
|
39
39
|
if (!enabled || (!requests.isError && claims.length === 0)) return null;
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<GroupedSection title={t('organizationDirectory.requests')}>
|
|
42
42
|
{requests.isError ? (
|
|
43
43
|
<View>
|
|
44
44
|
<Text accessibilityRole="alert">{t('organizationDirectory.requestError')}</Text>
|
|
@@ -47,7 +47,7 @@ export function OrganizationClaims() {
|
|
|
47
47
|
) : null}
|
|
48
48
|
{!requests.isError &&
|
|
49
49
|
claims.map((claim) => (
|
|
50
|
-
<
|
|
50
|
+
<GroupedSectionItem
|
|
51
51
|
key={claim.id}
|
|
52
52
|
title={
|
|
53
53
|
organizations.data?.find((item) => item.requestedAccountId === claim.accountId)
|
|
@@ -62,6 +62,6 @@ export function OrganizationClaims() {
|
|
|
62
62
|
{t('organizationDirectory.loadMore')}
|
|
63
63
|
</Button>
|
|
64
64
|
) : null}
|
|
65
|
-
</
|
|
65
|
+
</GroupedSection>
|
|
66
66
|
);
|
|
67
67
|
}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '@oxy.so/contracts/client';
|
|
18
18
|
import { Avatar } from '@oxy.so/bloom/avatar';
|
|
19
19
|
import { Button } from '@oxy.so/bloom/button';
|
|
20
|
-
import {
|
|
20
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
21
21
|
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
22
22
|
import { Text } from '@oxy.so/bloom/typography';
|
|
23
23
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
@@ -225,7 +225,7 @@ function OrganizationDirectorySearchContent({
|
|
|
225
225
|
};
|
|
226
226
|
if (selected)
|
|
227
227
|
return (
|
|
228
|
-
<
|
|
228
|
+
<GroupedSection title={selected.name}>
|
|
229
229
|
<View className="gap-space-16 p-space-16">
|
|
230
230
|
<Text>{t(`organizationDirectory.${selected.claimStatus}`)}</Text>
|
|
231
231
|
{selected.status === 'inactive' ? (
|
|
@@ -284,7 +284,7 @@ function OrganizationDirectorySearchContent({
|
|
|
284
284
|
{t('organizationDirectory.back')}
|
|
285
285
|
</Button>
|
|
286
286
|
</View>
|
|
287
|
-
</
|
|
287
|
+
</GroupedSection>
|
|
288
288
|
);
|
|
289
289
|
return (
|
|
290
290
|
<View className="gap-space-16">
|
|
@@ -307,11 +307,11 @@ function OrganizationDirectorySearchContent({
|
|
|
307
307
|
</View>
|
|
308
308
|
) : null}
|
|
309
309
|
{results.data ? (
|
|
310
|
-
<
|
|
310
|
+
<GroupedSection title={t('organizationDirectory.title')}>
|
|
311
311
|
{results.data.pages
|
|
312
312
|
.flatMap((page) => page.items)
|
|
313
313
|
.map((organization) => (
|
|
314
|
-
<
|
|
314
|
+
<GroupedSectionItem
|
|
315
315
|
key={organization.accountId}
|
|
316
316
|
title={organization.name}
|
|
317
317
|
description={[
|
|
@@ -333,7 +333,7 @@ function OrganizationDirectorySearchContent({
|
|
|
333
333
|
{t('organizationDirectory.loadMore')}
|
|
334
334
|
</Button>
|
|
335
335
|
) : null}
|
|
336
|
-
</
|
|
336
|
+
</GroupedSection>
|
|
337
337
|
) : null}
|
|
338
338
|
{results.isSuccess && query === search.trim() ? (
|
|
339
339
|
<>
|
|
@@ -5,7 +5,7 @@ import type { Organization, OrganizationType, UpdateOrganization } from '@oxy.so
|
|
|
5
5
|
import { updateOrganizationCheck, checkContract } from '@oxy.so/contracts/client';
|
|
6
6
|
import { Button } from '@oxy.so/bloom/button';
|
|
7
7
|
import { toast } from '@oxy.so/bloom/toast';
|
|
8
|
-
import {
|
|
8
|
+
import { GroupedSection } from '@oxy.so/bloom/grouped-section';
|
|
9
9
|
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
10
10
|
import { Text } from '@oxy.so/bloom/typography';
|
|
11
11
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
@@ -36,10 +36,10 @@ export function OrganizationSettings({
|
|
|
36
36
|
);
|
|
37
37
|
if (!canUpdate || !canUsePrivateApi)
|
|
38
38
|
return (
|
|
39
|
-
<
|
|
39
|
+
<GroupedSection title={t('organizationDirectory.title')}>
|
|
40
40
|
<Text>{t(`organizationDirectory.types.${organization.data.organizationType}`)}</Text>
|
|
41
41
|
<Text>{t('organizationDirectory.readonly')}</Text>
|
|
42
|
-
</
|
|
42
|
+
</GroupedSection>
|
|
43
43
|
);
|
|
44
44
|
return (
|
|
45
45
|
<OrganizationForm
|
|
@@ -71,7 +71,7 @@ function OrganizationForm({ organization }: { organization: Organization }) {
|
|
|
71
71
|
},
|
|
72
72
|
});
|
|
73
73
|
return (
|
|
74
|
-
<
|
|
74
|
+
<GroupedSection title={t('organizationDirectory.title')}>
|
|
75
75
|
<View className="gap-space-16 p-space-16">
|
|
76
76
|
<TextField>
|
|
77
77
|
<TextFieldInput
|
|
@@ -123,6 +123,6 @@ function OrganizationForm({ organization }: { organization: Organization }) {
|
|
|
123
123
|
{t('organizationDirectory.save')}
|
|
124
124
|
</Button>
|
|
125
125
|
</View>
|
|
126
|
-
</
|
|
126
|
+
</GroupedSection>
|
|
127
127
|
);
|
|
128
128
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OrganizationType } from '@oxy.so/contracts';
|
|
2
2
|
import { ORGANIZATION_TYPES } from '@oxy.so/contracts/client';
|
|
3
|
-
import {
|
|
3
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
4
4
|
import { Text } from '@oxy.so/bloom/typography';
|
|
5
5
|
import { useI18n } from '../../hooks/useI18n';
|
|
6
6
|
|
|
@@ -15,9 +15,9 @@ export function OrganizationTypePicker({
|
|
|
15
15
|
}) {
|
|
16
16
|
const { t } = useI18n();
|
|
17
17
|
return (
|
|
18
|
-
<
|
|
18
|
+
<GroupedSection title={t('organizationDirectory.type')}>
|
|
19
19
|
{ORGANIZATION_TYPES.map((type) => (
|
|
20
|
-
<
|
|
20
|
+
<GroupedSectionItem
|
|
21
21
|
key={type}
|
|
22
22
|
title={t(`organizationDirectory.types.${type}`)}
|
|
23
23
|
accessibilityLabel={t(`organizationDirectory.types.${type}`)}
|
|
@@ -27,6 +27,6 @@ export function OrganizationTypePicker({
|
|
|
27
27
|
rightElement={value === type ? <Text>✓</Text> : undefined}
|
|
28
28
|
/>
|
|
29
29
|
))}
|
|
30
|
-
</
|
|
30
|
+
</GroupedSection>
|
|
31
31
|
);
|
|
32
32
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SpinnerIcon } from '@oxy.so/bloom/loading';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
3
|
+
import { HeaderActions } from '@oxy.so/bloom/page-header';
|
|
4
|
+
|
|
4
5
|
import { RiAddLine } from '@oxy.so/bloom/icons/RiAddLine';
|
|
5
6
|
import { RiSubtractLine } from '@oxy.so/bloom/icons/RiSubtractLine';
|
|
6
7
|
/**
|
|
@@ -1093,36 +1094,46 @@ const AvatarCropScreen: React.FC<AvatarCropScreenProps> = ({
|
|
|
1093
1094
|
className="absolute bottom-4 left-0 right-0 items-center"
|
|
1094
1095
|
style={styles.footerPointerEvents}
|
|
1095
1096
|
>
|
|
1096
|
-
<
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1097
|
+
<HeaderActions
|
|
1098
|
+
actions={[
|
|
1099
|
+
{
|
|
1100
|
+
id: 'zoom-out',
|
|
1101
|
+
group: 'zoom',
|
|
1102
|
+
label: t('editProfile.crop.zoomOut'),
|
|
1103
|
+
icon: RiSubtractLine,
|
|
1104
|
+
labelVisibility: 'hidden',
|
|
1105
|
+
overflow: 'never',
|
|
1106
|
+
disabled: zoomOutDisabled,
|
|
1107
|
+
onPress: () => applyZoom(-1),
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
id: 'zoom-in',
|
|
1111
|
+
group: 'zoom',
|
|
1112
|
+
label: t('editProfile.crop.zoomIn'),
|
|
1113
|
+
icon: RiAddLine,
|
|
1114
|
+
labelVisibility: 'hidden',
|
|
1115
|
+
overflow: 'never',
|
|
1116
|
+
disabled: zoomInDisabled,
|
|
1117
|
+
onPress: () => applyZoom(1),
|
|
1118
|
+
},
|
|
1119
|
+
]}
|
|
1120
|
+
/>
|
|
1112
1121
|
</View>
|
|
1113
1122
|
) : null}
|
|
1114
1123
|
</View>
|
|
1115
1124
|
|
|
1116
1125
|
<View style={styles.helperBlock}>
|
|
1117
1126
|
<Text style={styles.helper}>{t('editProfile.crop.helper')}</Text>
|
|
1118
|
-
<
|
|
1127
|
+
<Button
|
|
1128
|
+
appearance="plain"
|
|
1129
|
+
linkTone="primary"
|
|
1119
1130
|
accessibilityLabel={t('editProfile.crop.a11yReset')}
|
|
1120
1131
|
onPress={resetTransform}
|
|
1121
1132
|
disabled={!isModified || isProcessing}
|
|
1122
1133
|
size="sm"
|
|
1123
1134
|
>
|
|
1124
1135
|
{t('editProfile.crop.resetToCenter')}
|
|
1125
|
-
</
|
|
1136
|
+
</Button>
|
|
1126
1137
|
</View>
|
|
1127
1138
|
</View>
|
|
1128
1139
|
);
|
|
@@ -4,8 +4,8 @@ import { View, StyleSheet } from 'react-native';
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import type { BaseScreenProps } from '../types/navigation';
|
|
6
6
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
7
|
-
import { Button
|
|
8
|
-
|
|
7
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
8
|
+
|
|
9
9
|
import { RiSettings3Line } from '@oxy.so/bloom/icons/RiSettings3Line';
|
|
10
10
|
import { PressableScale } from '@oxy.so/bloom/pressable-scale';
|
|
11
11
|
import { useSurfaceFill } from '@oxy.so/bloom/styles';
|
|
@@ -277,14 +277,13 @@ const ProfileScreen: React.FC<ProfileScreenProps> = ({ userId, username, navigat
|
|
|
277
277
|
>
|
|
278
278
|
{t('editProfile.title') || 'Edit Profile'}
|
|
279
279
|
</Button>
|
|
280
|
-
<
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
</ButtonGroup>
|
|
280
|
+
<Button
|
|
281
|
+
appearance="outline"
|
|
282
|
+
tone="neutral"
|
|
283
|
+
icon={RiSettings3Line}
|
|
284
|
+
accessibilityLabel={t('accountMenu.settings') || 'Settings'}
|
|
285
|
+
onPress={() => navigate?.('Preferences')}
|
|
286
|
+
/>
|
|
288
287
|
</View>
|
|
289
288
|
) : (
|
|
290
289
|
<FollowButton
|
|
@@ -332,7 +331,9 @@ const ProfileScreen: React.FC<ProfileScreenProps> = ({ userId, username, navigat
|
|
|
332
331
|
))}
|
|
333
332
|
</View>
|
|
334
333
|
{websiteUrl ? (
|
|
335
|
-
<
|
|
334
|
+
<Button
|
|
335
|
+
appearance="plain"
|
|
336
|
+
linkTone="primary"
|
|
336
337
|
size="sm"
|
|
337
338
|
href={websiteUrl}
|
|
338
339
|
style={{ alignSelf: 'flex-start', paddingLeft: 0, paddingRight: 0 }}
|
|
@@ -341,7 +342,7 @@ const ProfileScreen: React.FC<ProfileScreenProps> = ({ userId, username, navigat
|
|
|
341
342
|
icon={<Ionicons name="link-outline" size={INFO_ICON_SIZE} />}
|
|
342
343
|
>
|
|
343
344
|
{profile?.website}
|
|
344
|
-
</
|
|
345
|
+
</Button>
|
|
345
346
|
) : null}
|
|
346
347
|
<View style={styles.statsRow}>
|
|
347
348
|
{!isLoadingCounts && followingCount !== null ? (
|
|
@@ -7,7 +7,8 @@ import type { BaseScreenProps } from '../types/navigation';
|
|
|
7
7
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
8
8
|
import { H6, Text } from '@oxy.so/bloom/typography';
|
|
9
9
|
import { Button } from '@oxy.so/bloom/button';
|
|
10
|
-
import {
|
|
10
|
+
import { Avatar } from '@oxy.so/bloom/avatar';
|
|
11
|
+
import { Item } from '@oxy.so/bloom/item';
|
|
11
12
|
import FollowButton from '../components/FollowButton';
|
|
12
13
|
import Ionicons from '../icons/Ionicons';
|
|
13
14
|
import { useI18n } from '../hooks/useI18n';
|
|
@@ -157,32 +158,36 @@ const UserListScreen: React.FC<UserListScreenProps> = ({ userId, mode, sort, nav
|
|
|
157
158
|
|
|
158
159
|
return (
|
|
159
160
|
<View className="px-screen-margin flex-row items-center gap-space-12">
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
<Item
|
|
162
|
+
leading={
|
|
163
|
+
<Avatar
|
|
164
|
+
name={displayName}
|
|
165
|
+
source={
|
|
166
|
+
item.avatar ? oxyServices.assets.publicUrl(item.avatar, 'thumb') : undefined
|
|
167
|
+
}
|
|
168
|
+
size={44}
|
|
169
|
+
/>
|
|
170
|
+
}
|
|
171
|
+
style={{ flex: 1, paddingLeft: 0, paddingRight: 0 }}
|
|
172
|
+
accessibilityLabel={displayName}
|
|
167
173
|
onPress={() => handleUserPress(item)}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
>
|
|
175
|
+
<View style={styles.userInfo}>
|
|
176
|
+
<Text variant="body-medium" numberOfLines={1}>
|
|
177
|
+
{displayName}
|
|
178
|
+
</Text>
|
|
179
|
+
{handle ? (
|
|
180
|
+
<Text className="text-text-secondary text-sm mt-space-2" numberOfLines={1}>
|
|
181
|
+
{item.username ? `@${handle}` : handle}
|
|
172
182
|
</Text>
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
</Text>
|
|
182
|
-
) : null}
|
|
183
|
-
</View>
|
|
184
|
-
}
|
|
185
|
-
/>
|
|
183
|
+
) : null}
|
|
184
|
+
{description ? (
|
|
185
|
+
<Text className="text-text-secondary text-sm mt-space-4" numberOfLines={2}>
|
|
186
|
+
{description}
|
|
187
|
+
</Text>
|
|
188
|
+
) : null}
|
|
189
|
+
</View>
|
|
190
|
+
</Item>
|
|
186
191
|
{!isCurrentUser && itemUserId ? <FollowButton userId={itemUserId} size="sm" /> : null}
|
|
187
192
|
</View>
|
|
188
193
|
);
|