@openpeepshq/rn-components 0.3.8 → 0.3.9
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/rn-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "React Native community screens and shared UI (extracted from the Black Ambition app) for the OpenPeeps stack.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"timezones-list": "^3.1.0",
|
|
141
141
|
"validator": "^13.15.23",
|
|
142
142
|
"zustand": "^5.0.3",
|
|
143
|
-
"@openpeepshq/
|
|
144
|
-
"@openpeepshq/
|
|
143
|
+
"@openpeepshq/react": "^0.3.1",
|
|
144
|
+
"@openpeepshq/common": "^0.2.0"
|
|
145
145
|
},
|
|
146
146
|
"devDependencies": {
|
|
147
147
|
"@babel/core": "^7.26.7",
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
ScrollTextIcon,
|
|
18
18
|
SearchIcon,
|
|
19
19
|
SettingsIcon,
|
|
20
|
-
SquarePenIcon,
|
|
21
20
|
UsersIcon,
|
|
22
21
|
XIcon,
|
|
23
22
|
} from '../../icons/index';
|
|
@@ -57,14 +56,12 @@ interface SideMenuProps {
|
|
|
57
56
|
onNotificationPress: () => void;
|
|
58
57
|
onProfilePress: () => void;
|
|
59
58
|
close?: () => void;
|
|
60
|
-
handleNewPost: () => void;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
export const SideMenu = ({
|
|
64
62
|
handleNavigation,
|
|
65
63
|
onNotificationPress,
|
|
66
64
|
close,
|
|
67
|
-
handleNewPost,
|
|
68
65
|
onProfilePress,
|
|
69
66
|
}: SideMenuProps) => {
|
|
70
67
|
const { openpeepsApi, currentProfile } = useOpenpeeps();
|
|
@@ -140,16 +137,6 @@ export const SideMenu = ({
|
|
|
140
137
|
</View>
|
|
141
138
|
</TouchableOpacity>
|
|
142
139
|
|
|
143
|
-
{isMediumScreenOrLarger && (
|
|
144
|
-
<Button
|
|
145
|
-
onPress={handleNewPost}
|
|
146
|
-
className="flex-row gap-4 items-center text-black mb-4 justify-center px-4 w-full"
|
|
147
|
-
>
|
|
148
|
-
<SquarePenIcon size={20} />
|
|
149
|
-
<ThemedText>{t('posts.form.title')}</ThemedText>
|
|
150
|
-
</Button>
|
|
151
|
-
)}
|
|
152
|
-
|
|
153
140
|
<Separator />
|
|
154
141
|
|
|
155
142
|
<View className="flex-1">
|
|
@@ -34,11 +34,6 @@ export const SideMenuDrawer = ({ children }: SideMenuDrawerProps) => {
|
|
|
34
34
|
goto({ target, params });
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
const handleNewPost = () => {
|
|
38
|
-
closeDrawer();
|
|
39
|
-
goto({ target: 'newPost' });
|
|
40
|
-
};
|
|
41
|
-
|
|
42
37
|
const onNotificationPress = () => {
|
|
43
38
|
closeDrawer();
|
|
44
39
|
goto({ target: 'notifications' });
|
|
@@ -63,7 +58,6 @@ export const SideMenuDrawer = ({ children }: SideMenuDrawerProps) => {
|
|
|
63
58
|
handleNavigation={handleNavigation}
|
|
64
59
|
onNotificationPress={onNotificationPress}
|
|
65
60
|
close={closeDrawer}
|
|
66
|
-
handleNewPost={handleNewPost}
|
|
67
61
|
onProfilePress={onProfilePress}
|
|
68
62
|
/>
|
|
69
63
|
);
|
|
@@ -30,10 +30,6 @@ export const MenuWrapper = ({ children }: { children: React.ReactNode }) => {
|
|
|
30
30
|
goto({ target, params });
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
const handleNewPost = () => {
|
|
34
|
-
goto({ target: 'newPost' });
|
|
35
|
-
};
|
|
36
|
-
|
|
37
33
|
const onNotificationPress = () => {
|
|
38
34
|
goto({ target: 'notifications' });
|
|
39
35
|
};
|
|
@@ -58,7 +54,6 @@ export const MenuWrapper = ({ children }: { children: React.ReactNode }) => {
|
|
|
58
54
|
handleNavigation={handleNavigation}
|
|
59
55
|
onNotificationPress={onNotificationPress}
|
|
60
56
|
onProfilePress={onProfilePress}
|
|
61
|
-
handleNewPost={handleNewPost}
|
|
62
57
|
/>
|
|
63
58
|
</View>
|
|
64
59
|
<View className="flex-grow flex-1">{children}</View>
|