Skip to content

Commit

Permalink
updated yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
josephchimebuka committed Jun 2, 2024
1 parent 9242d7b commit 6041b71
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 141 deletions.
117 changes: 21 additions & 96 deletions JoyboyCommunity/src/assets/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,29 +107,10 @@ export const UserIcon: React.FC<SvgProps> = (props) => (
</Svg>
);

export const CopyIcon: React.FC<SvgProps> = (props) => (
<Svg
width={24}
height={24}
fill="none"
{...props}
>
<Path
stroke="#4B799F"
strokeLinejoin="round"
strokeWidth={1.5}
d="m16.596 20.699-2.445.647c-2.263.6-3.395.899-4.281.408-.887-.49-1.182-1.58-1.773-3.758l-1.462-5.391c-.59-2.179-.886-3.268-.367-4.13.52-.863 1.651-1.163 3.914-1.762l4-1.06c2.264-.598 3.395-.898 4.282-.407.886.49 1.182 1.58 1.772 3.758l1.468 5.413c.251.926.377 1.39.239 1.825m-5.347 4.457c.752-.2.758-.202 1.343-.704l2.743-2.355c.749-.642 1.123-.963 1.261-1.398m-5.347 4.457s.588-4.593 1.904-5.199c1.493-.687 3.443.742 3.443.742"
/>
<Path
stroke="#4B799F"
strokeWidth={1.5}
d="M17 5.001c-.064-1.073-.243-1.749-.752-2.233-.78-.742-2.03-.746-4.532-.754l-4.423-.013c-2.502-.007-3.753-.01-4.528.727-.775.737-.771 1.928-.764 4.31l.018 5.893c.008 2.381.011 3.572.79 4.314.78.742 2.031.746 4.533.753l.681.002"
/>
</Svg>
);


export const Exit: React.FC<SvgProps> = (props) => (

export const ExitIcon: React.FC<SvgProps> = (props) => (
<Svg
width={57}
height={56}
Expand Down Expand Up @@ -158,66 +139,10 @@ export const Exit: React.FC<SvgProps> = (props) => (
</Svg>
);

export const Gallery: React.FC<SvgProps> = (props) => (
<Svg
width={24}
height={24}
fill="none"
{...props}
>
<Path
stroke="#4B799F"
strokeWidth={1.5}
d="M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109C18.717 21.5 16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391C2.5 18.717 2.5 16.479 2.5 12Z"
/>
<Path
stroke="#4B799F"
strokeWidth={1.5}
d="M16.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"
/>
<Path
stroke="#4B799F"
strokeLinejoin="round"
strokeWidth={1.5}
d="M16 22c-.62-2.225-2.066-4.218-4.123-5.666-2.22-1.561-5.005-2.387-7.861-2.331-.34-.001-.678.01-1.016.032"
/>
<Path
stroke="#4B799F"
strokeLinejoin="round"
strokeWidth={1.5}
d="M13 18c1.701-1.327 3.535-2.007 5.386-2a7.792 7.792 0 0 1 3.114.662"
/>
</Svg>
);


export const GifIcon: React.FC<SvgProps> = (props) => (
<Svg

width={24}
height={24}
fill="none"
{...props}
>
<Path
stroke="#4B799F"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
d="M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.156 4.156 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252 1.166.406 2.085 1.263 2.52 2.35.27.676.27 1.523.27 3.216V10"
/>
<Path
stroke="#4B799F"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
d="M2.75 12c0-1.84 1.506-3.333 3.364-3.333.672 0 1.464.116 2.117-.057a1.674 1.674 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2M12.842 18h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523"
/>
</Svg>
);


export const Line: React.FC<SvgProps> = (props) => (
export const LineIcon: React.FC<SvgProps> = (props) => (
<Svg
width={37}
height={5}
Expand Down Expand Up @@ -257,23 +182,23 @@ export const ProfileIcon: React.FC<SvgProps> = (props)=> (
</Svg>
);

export const SendButton: React.FC<SvgProps> = (props)=> (
<Svg
width={56}
height={56}
fill="none"
{...props}
>
<Path
fill="currentColor"
d="M22 3.464a12 12 0 0 1 12 0l12.249 7.072a12 12 0 0 1 6 10.392v14.144a12 12 0 0 1-6 10.392L34 52.536a12 12 0 0 1-12 0L9.751 45.464a12 12 0 0 1-6-10.392V20.928a12 12 0 0 1 6-10.392L22 3.464Z"
/>
<Path
fill="#fff"
d="M37.597 18.543c-.467-.504-1.2-.692-1.9-.76-.736-.07-1.617-.024-2.566.1-1.902.25-4.2.828-6.409 1.539-2.21.711-4.363 1.567-5.976 2.386-.802.409-1.499.821-2.005 1.218-.252.197-.482.41-.655.636-.165.216-.338.524-.336.894.006.972.668 1.659 1.373 2.12.72.47 1.657.825 2.589 1.103.941.281 1.931.499 2.783.675l.304.063c.514.106.771.16 1.013.087.242-.072.428-.258.8-.63l3.68-3.681a1 1 0 0 1 1.415 1.414l-3.433 3.433c-.379.379-.568.568-.64.814-.072.246-.014.507.102 1.03.448 2.024.838 3.697 1.226 4.823.227.657.483 1.227.806 1.646.337.438.796.77 1.4.796.376.017.69-.155.904-.315.225-.167.438-.393.635-.639.396-.495.812-1.18 1.226-1.97.832-1.59 1.713-3.722 2.459-5.915.745-2.193 1.366-4.48 1.665-6.38.149-.948.223-1.828.182-2.565-.04-.7-.188-1.434-.642-1.922Z"
/>
</Svg>
);
// export const SendButton: React.FC<SvgProps> = (props)=> (
// <Svg
// width={56}
// height={56}
// fill="none"
// {...props}
// >
// <Path
// fill="currentColor"
// d="M22 3.464a12 12 0 0 1 12 0l12.249 7.072a12 12 0 0 1 6 10.392v14.144a12 12 0 0 1-6 10.392L34 52.536a12 12 0 0 1-12 0L9.751 45.464a12 12 0 0 1-6-10.392V20.928a12 12 0 0 1 6-10.392L22 3.464Z"
// />
// <Path
// fill="#fff"
// d="M37.597 18.543c-.467-.504-1.2-.692-1.9-.76-.736-.07-1.617-.024-2.566.1-1.902.25-4.2.828-6.409 1.539-2.21.711-4.363 1.567-5.976 2.386-.802.409-1.499.821-2.005 1.218-.252.197-.482.41-.655.636-.165.216-.338.524-.336.894.006.972.668 1.659 1.373 2.12.72.47 1.657.825 2.589 1.103.941.281 1.931.499 2.783.675l.304.063c.514.106.771.16 1.013.087.242-.072.428-.258.8-.63l3.68-3.681a1 1 0 0 1 1.415 1.414l-3.433 3.433c-.379.379-.568.568-.64.814-.072.246-.014.507.102 1.03.448 2.024.838 3.697 1.226 4.823.227.657.483 1.227.806 1.646.337.438.796.77 1.4.796.376.017.69-.155.904-.315.225-.167.438-.393.635-.639.396-.495.812-1.18 1.226-1.97.832-1.59 1.713-3.722 2.459-5.915.745-2.193 1.366-4.48 1.665-6.38.149-.948.223-1.828.182-2.565-.04-.7-.188-1.434-.642-1.922Z"
// />
// </Svg>
// );


export const Update: React.FC<SvgProps> = (props) => (
Expand Down Expand Up @@ -328,7 +253,7 @@ export const Warning: React.FC<SvgProps> = (props) => (
/>
</Svg>
)
=======
;
export const CopyIcon: React.FC<SvgProps> = (props) => {
return (
<Svg viewBox="0 0 24 24" fill="none" {...props}>
Expand Down
4 changes: 2 additions & 2 deletions JoyboyCommunity/src/components/modal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import {Portal} from 'react-native-portalize';

import { Line } from '../../assets/icons';
import { LineIcon } from '../../assets/icons';
import {
ButtonText,
Container,
Expand Down Expand Up @@ -32,7 +32,7 @@ const Modal: React.FC<CustomModalProps> = ({name, buttons, icon, description, vi
<Overlay>
<ModalContainer>
<Container>
<Line color='#3C3C43'/>
<LineIcon color='#3C3C43'/>
<IconContainer>{icon}</IconContainer>
<Title>{name}</Title>
<Content>{description}</Content>
Expand Down
6 changes: 3 additions & 3 deletions JoyboyCommunity/src/screens/CreatePost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
SendbuttonContainer,
TitleContainer,
} from './styled';
import { CopyIcon, Gallery, GifIcon, ProfileIcon, SendButton } from '../../assets/icons';
import { CopyIcon, GalleryIcon, GifIcon, ProfileIcon, SendIcon } from '../../assets/icons';

export const CreatePost: React.FC = () => {
const navigation = useNavigation();
Expand Down Expand Up @@ -88,11 +88,11 @@ export const CreatePost: React.FC = () => {

<IconDiv>
<SendbuttonContainer>
<SendButton color='#EC796B' width="56" height="56" />
<SendIcon color='#EC796B' width="56" height="56" />
</SendbuttonContainer>
<IconContainer>
<TouchableOpacity>
<Gallery width="24" height="24" strokeWidth={1.5} stroke="#4B799F" />
<GalleryIcon width="24" height="24" strokeWidth={1.5} stroke="#4B799F" />
</TouchableOpacity>

<TouchableOpacity>
Expand Down
4 changes: 2 additions & 2 deletions JoyboyCommunity/src/screens/DialogPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {useState} from 'react';
import {Button, Pressable, View} from 'react-native';
import {Exit, NotificationIcon, Update, Warning} from '../../assets/icons';
import {ExitIcon, NotificationIcon, Update, Warning} from '../../assets/icons';
import {Divider} from '../../components';
import Modal from '../../components/modal';
import {Container, Logo} from './styled';
Expand Down Expand Up @@ -57,7 +57,7 @@ export const DialogPage: React.FC = () => {
{label: 'Logout', type: 'primary', onPress: () => toggleModal(null)},
{label: 'Cancel', type: 'secondary', onPress: () => toggleModal(null)},
]}
icon={<Exit color='#EC796B'/>}
icon={<ExitIcon color='#EC796B'/>}
description="Are you sure you want to logout?"
visible={true}
/>
Expand Down
40 changes: 2 additions & 38 deletions JoyboyCommunity/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1385,25 +1385,13 @@
resolved "https://registry.npmjs.org/@noble/ciphers/-/ciphers-0.2.0.tgz"
integrity sha512-6YBxJDAapHSdd3bLDv6x2wRPwq4QFMUaB3HvljNBUTThDd12eSm7/3F+2lnfzx2jvM+S6Nsy0jEt9QbPqSwqRw==

"@noble/ciphers@^0.5.1":
version "0.5.3"
resolved "https://registry.npmjs.org/@noble/ciphers/-/ciphers-0.5.3.tgz"
integrity sha512-B0+6IIHiqEs3BPMT0hcRmHvEj2QHOLu+uwt+tqDDeVd0oyVzh7BPrDcPjRnV1PV/5LaknXJJQvOuRGR0zQJz+w==

"@noble/curves@1.1.0", "@noble/curves@~1.1.0":
version "1.1.0"
resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz"
integrity sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==
dependencies:
"@noble/hashes" "1.3.1"

"@noble/curves@1.2.0":
version "1.2.0"
resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz"
integrity sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==
dependencies:
"@noble/hashes" "1.3.2"

"@noble/curves@^1.4.0":
version "1.4.0"
resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz"
Expand All @@ -1416,11 +1404,6 @@
resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz"
integrity sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==

"@noble/hashes@1.3.2":
version "1.3.2"
resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz"
integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==

"@noble/hashes@1.4.0", "@noble/hashes@^1.3.1":
version "1.4.0"
resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz"
Expand Down Expand Up @@ -1457,9 +1440,9 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@nostr-dev-kit/ndk@^2.8.1":
"@nostr-dev-kit/ndk@^2.8.2":
version "2.8.2"
resolved "https://registry.npmjs.org/@nostr-dev-kit/ndk/-/ndk-2.8.2.tgz"
resolved "https://registry.npmjs.org/@nostr-dev-kit/ndk/-/ndk-2.8.2.tgz#6d024b90dddbaae2b4cf9548f2bb4357fc87bdd8"
integrity sha512-+dOEyuYvO5/MoI5iTi8C5HifmvfeEvpybNesluVYyu+o+koFdfc+WSYH050V8+9KlOgx8nOZAaqXnHz0KY1gBA==
dependencies:
"@noble/curves" "^1.4.0"
Expand Down Expand Up @@ -6157,25 +6140,6 @@ nostr-tools@^1.15.0:
"@scure/bip32" "1.3.1"
"@scure/bip39" "1.2.1"

nostr-tools@^2.5.2:
version "2.7.0"
resolved "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.7.0.tgz#5c125300465e8d418198e40ed51f3a4563bdb4a7"
integrity sha512-jJoL2J1CBiKDxaXZww27nY/Wsuxzx7AULxmGKFce4sskDu1tohNyfnzYQ8BvDyvkstU8kNZUAXPL32tre33uig==
dependencies:
"@noble/ciphers" "^0.5.1"
"@noble/curves" "1.2.0"
"@noble/hashes" "1.3.1"
"@scure/base" "1.1.1"
"@scure/bip32" "1.3.1"
"@scure/bip39" "1.2.1"
optionalDependencies:
nostr-wasm v0.1.0

nostr-wasm@v0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/nostr-wasm/-/nostr-wasm-0.1.0.tgz"
integrity sha512-78BTryCLcLYv96ONU8Ws3Q1JzjlAt+43pWQhIl86xZmWeegYCNLPml7yQ+gG3vR6V5h4XGj+TxO+SS5dsThQIA==

npm-package-arg@^7.0.0:
version "7.0.0"
resolved "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-7.0.0.tgz"
Expand Down

0 comments on commit 6041b71

Please sign in to comment.