-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APP-269 update user menu and profile edit sidebar with orders (#…
…2486) Co-authored-by: r41ph <“ralph.galan@regen.network>
- Loading branch information
Showing
29 changed files
with
931 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import React from 'react'; | ||
|
||
type Props = { | ||
linearGradient?: boolean; | ||
disabled?: boolean; | ||
} & React.SVGProps<SVGSVGElement>; | ||
|
||
export const EnvelopeIcon = (props: Props) => { | ||
const randomId = Math.random().toString(36).substring(7); | ||
const gradientId = props.disabled | ||
? `shopping_bag_gradient-${randomId}` | ||
: 'shopping_bag_gradient'; | ||
return ( | ||
<svg | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<g id="Icon / Email"> | ||
<path | ||
id="Union" | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M19 7H5L4.97568 7.00029L12.2584 12.233L19.4158 7.09028C19.2892 7.03231 19.1484 7 19 7ZM19.9956 7.90508L12.4174 13.3501C12.3647 13.3879 12.3024 13.4023 12.2428 13.3954C12.1922 13.3954 12.1412 13.3802 12.097 13.3484L4.08643 7.59271C4.03088 7.71712 4 7.85495 4 8V17C4 17.5523 4.44772 18 5 18H19C19.5523 18 20 17.5523 20 17V8C20 7.96799 19.9985 7.93632 19.9956 7.90508ZM5 5C3.34315 5 2 6.34315 2 8V17C2 18.6569 3.34315 20 5 20H19C20.6569 20 22 18.6569 22 17V8C22 6.34315 20.6569 5 19 5H5Z" | ||
fill={ | ||
props.linearGradient | ||
? `url(#${gradientId})` | ||
: props.disabled | ||
? '#8F8F8F' | ||
: 'currentColor' | ||
} | ||
/> | ||
</g> | ||
<defs> | ||
<linearGradient | ||
id={gradientId} | ||
x1="12" | ||
y1="5" | ||
x2="7.21101" | ||
y2="20.9633" | ||
gradientUnits="userSpaceOnUse" | ||
> | ||
<stop | ||
offset="0.00458717" | ||
stopColor={props.disabled ? '#8F8F8F' : '#7BC796'} | ||
/> | ||
<stop offset="1" stopColor={props.disabled ? '#EFEFEF' : '#C5E6D1'} /> | ||
</linearGradient> | ||
</defs> | ||
</svg> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,63 @@ | ||
import React from 'react'; | ||
|
||
export const PrefinanceIcon = (props: React.SVGProps<SVGSVGElement>) => ( | ||
<svg width="18" height="19" viewBox="0 0 18 19" fill="none" {...props}> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M3.60769 0.0510187C4.15939 0.0254518 4.62735 0.451961 4.65292 1.00365L4.68334 1.66016C8.5722 -0.646761 13.6343 0.449618 16.2029 4.24325C17.71 6.46915 18.0355 9.14841 17.3244 11.5354C17.1867 11.9978 17.01 12.4496 16.7953 12.8853C16.5512 13.3808 15.9518 13.5845 15.4563 13.3405C14.9609 13.0964 14.7571 12.4969 15.0012 12.0015C15.166 11.667 15.3017 11.32 15.4076 10.9645C15.9549 9.12741 15.7036 7.07303 14.5468 5.36456C12.6663 2.58722 9.04518 1.69277 6.12407 3.15118L6.6535 3.25776C7.19493 3.36676 7.54547 3.89404 7.43647 4.43546C7.32747 4.97688 6.8002 5.32743 6.25877 5.21842L3.57937 4.67899C3.12953 4.58843 2.79905 4.20333 2.77781 3.74496L2.65506 1.09624C2.62949 0.544547 3.056 0.0765856 3.60769 0.0510187ZM2.3403 5.44293C2.85504 5.64308 3.11007 6.22261 2.90991 6.73735C2.14828 8.6961 2.33053 10.9796 3.59568 12.8481C5.47593 15.6251 9.09643 16.5197 12.0174 15.062L11.4331 14.9306C10.8942 14.8095 10.5557 14.2744 10.6768 13.7356C10.798 13.1968 11.333 12.8582 11.8719 12.9794L14.5384 13.579C14.9861 13.6797 15.3078 14.0721 15.3188 14.5308L15.3818 17.1817C15.395 17.7338 14.958 18.192 14.4059 18.2052C13.8538 18.2183 13.3955 17.7814 13.3824 17.2292L13.3676 16.6061C9.49115 18.8421 4.48805 17.7333 1.93958 13.9694C0.290675 11.5341 0.0563944 8.55726 1.04587 6.01255C1.24602 5.4978 1.82556 5.24278 2.3403 5.44293ZM8.07591 7.2757C8.07591 6.8727 8.38466 6.6582 9.00216 6.6322C9.06066 6.6322 9.08991 6.66145 9.08991 6.71995V7.98745C9.08991 8.04595 9.06391 8.0687 9.01191 8.0557C9.00541 8.0492 8.99241 8.04595 8.97291 8.04595C8.95991 8.03945 8.95016 8.0362 8.94366 8.0362C8.36516 7.8867 8.07591 7.6332 8.07591 7.2757ZM9.91866 10.2787C9.91866 10.7012 9.62616 10.9384 9.04116 10.9904C8.98266 10.9904 8.95341 10.9644 8.95341 10.9124V9.5377C8.95341 9.4857 8.98266 9.4662 9.04116 9.4792C9.35966 9.5767 9.58391 9.69045 9.71391 9.82045C9.85041 9.94395 9.91866 10.0967 9.91866 10.2787ZM6.51591 7.2757C6.51591 8.0427 6.95791 8.63745 7.84191 9.05995C7.88741 9.07945 7.89716 9.1152 7.87116 9.1672C7.84516 9.2452 7.83216 9.31345 7.83216 9.37195V10.7954C7.83216 10.8539 7.80616 10.8767 7.75416 10.8637C7.57866 10.8182 7.40316 10.7597 7.22766 10.6882C7.11066 10.6362 6.99691 10.646 6.88641 10.7174C6.78241 10.7824 6.73041 10.8767 6.73041 11.0002V11.2829C6.73041 11.452 6.77916 11.6079 6.87666 11.7509C6.97416 11.8874 7.10091 11.9784 7.25691 12.0239C7.42591 12.0759 7.59491 12.115 7.76391 12.1409C7.80941 12.1474 7.83216 12.1799 7.83216 12.2384V12.6479C7.83216 12.7974 7.88741 12.9275 7.99791 13.038C8.10841 13.1484 8.23841 13.2037 8.38791 13.2037H8.40741C8.55691 13.2037 8.68366 13.1484 8.78766 13.038C8.89816 12.9275 8.95341 12.7974 8.95341 12.6479V12.3067C8.95341 12.2482 8.97941 12.219 9.03141 12.219C9.84391 12.1929 10.4549 12.0109 10.8644 11.6729C11.2804 11.3349 11.4884 10.8604 11.4884 10.2494C11.4884 9.83995 11.3909 9.49545 11.1959 9.21595C11.0074 8.92995 10.6889 8.68295 10.2404 8.47495C10.2014 8.45545 10.1884 8.41645 10.2014 8.35795C10.2079 8.33845 10.2112 8.30595 10.2112 8.26045V6.81745C10.2112 6.76545 10.2372 6.74595 10.2892 6.75895C10.3867 6.77845 10.5329 6.8142 10.7279 6.8662C10.8579 6.8987 10.9749 6.87595 11.0789 6.79795C11.1894 6.71995 11.2447 6.61595 11.2447 6.48595V6.25195C11.2447 6.08945 11.1959 5.9432 11.0984 5.8132C11.0009 5.6767 10.8742 5.5922 10.7182 5.5597C10.6272 5.5402 10.4842 5.51745 10.2892 5.49145C10.2372 5.47845 10.2112 5.44595 10.2112 5.39395V4.98445C10.2112 4.83495 10.1559 4.70495 10.0454 4.59445C9.93491 4.48395 9.80491 4.4287 9.65541 4.4287H9.63591C9.48641 4.4287 9.35641 4.48395 9.24591 4.59445C9.14191 4.70495 9.08991 4.83495 9.08991 4.98445V5.31595C9.08991 5.37445 9.06066 5.4037 9.00216 5.4037C8.19616 5.4102 7.57866 5.58245 7.14966 5.92045C6.72716 6.25845 6.51591 6.7102 6.51591 7.2757Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
); | ||
type Props = { | ||
linearGradient?: boolean; | ||
disabled?: boolean; | ||
width?: string; | ||
height?: string; | ||
} & React.SVGProps<SVGSVGElement>; | ||
|
||
export const PrefinanceIcon = ({ | ||
width = '18', | ||
height = '19', | ||
disabled, | ||
...props | ||
}: Props) => { | ||
const randomId = Math.random().toString(36).substring(7); | ||
const gradientId = props | ||
? `shopping_bag_gradient-${randomId}` | ||
: 'shopping_bag_gradient'; | ||
return ( | ||
<svg | ||
id={randomId} | ||
width={width} | ||
height={height} | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
preserveAspectRatio="none" | ||
{...props} | ||
> | ||
<g id="Icon / Prefinance"> | ||
<path | ||
id={randomId} | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M4.82566 0.399529C5.37735 0.373963 5.84531 0.800472 5.87088 1.35216L5.93787 2.79778C11.0281 -0.57457 17.8965 0.775273 21.3278 5.84308C23.2789 8.72471 23.7005 12.1929 22.7797 15.284C22.6014 15.8827 22.3726 16.4675 22.0947 17.0317C21.8506 17.5271 21.2512 17.7309 20.7557 17.4868C20.2603 17.2427 20.0565 16.6433 20.3006 16.1478C20.5286 15.685 20.7164 15.2048 20.8629 14.713C21.6199 12.1719 21.2725 9.32859 19.6717 6.96439C16.8958 2.86451 11.3786 1.72984 7.22067 4.34992L8.80552 4.66899C9.34694 4.77799 9.69748 5.30526 9.58848 5.84668C9.47948 6.38811 8.95221 6.73865 8.41079 6.62965L4.83825 5.91041C4.38841 5.81985 4.05793 5.43475 4.03668 4.97637L3.87302 1.44475C3.84745 0.893058 4.27396 0.425096 4.82566 0.399529ZM2.99956 7.56644C3.5143 7.76659 3.76933 8.34613 3.56918 8.86087C2.51569 11.5702 2.76736 14.7304 4.51818 17.3162C7.28848 21.4078 12.7889 22.5461 16.9439 19.9466L15.3172 19.5808C14.7784 19.4597 14.4398 18.9246 14.5609 18.3858C14.6821 17.847 15.2171 17.5084 15.756 17.6295L19.3114 18.4291C19.7591 18.5297 20.0808 18.9222 20.0917 19.3809L20.1758 22.9153C20.189 23.4675 19.752 23.9257 19.1999 23.9388C18.6478 23.952 18.1895 23.515 18.1764 22.9629L18.1429 21.5543C13.0641 24.8357 6.26892 23.4692 2.86208 18.4375C0.727507 15.2849 0.423806 11.4313 1.70514 8.13606C1.90529 7.62132 2.48482 7.36629 2.99956 7.56644ZM10.7679 9.69946C10.7679 9.16213 11.1795 8.87613 12.0029 8.84146C12.0809 8.84146 12.1199 8.88046 12.1199 8.95846V10.6485C12.1199 10.7265 12.0852 10.7568 12.0159 10.7395C12.0072 10.7308 11.9899 10.7265 11.9639 10.7265C11.9465 10.7178 11.9335 10.7135 11.9249 10.7135C11.1535 10.5141 10.7679 10.1761 10.7679 9.69946ZM13.2249 13.7035C13.2249 14.2668 12.8349 14.5831 12.0549 14.6525C11.9769 14.6525 11.9379 14.6178 11.9379 14.5485V12.7155C11.9379 12.6461 11.9769 12.6201 12.0549 12.6375C12.4795 12.7675 12.7785 12.9191 12.9519 13.0925C13.1339 13.2571 13.2249 13.4608 13.2249 13.7035ZM8.68785 9.69946C8.68785 10.7221 9.27718 11.5151 10.4559 12.0785C10.5165 12.1045 10.5295 12.1521 10.4949 12.2215C10.4602 12.3255 10.4429 12.4165 10.4429 12.4945V14.3925C10.4429 14.4705 10.4082 14.5008 10.3389 14.4835C10.1049 14.4228 9.87085 14.3448 9.63685 14.2495C9.48085 14.1801 9.32918 14.1931 9.18185 14.2885C9.04318 14.3751 8.97385 14.5008 8.97385 14.6655V15.0425C8.97385 15.2678 9.03885 15.4758 9.16885 15.6665C9.29885 15.8485 9.46785 15.9698 9.67585 16.0305C9.90118 16.0998 10.1265 16.1518 10.3519 16.1865C10.4125 16.1951 10.4429 16.2385 10.4429 16.3165V16.8625C10.4429 17.0618 10.5165 17.2351 10.6639 17.3825C10.8112 17.5298 10.9845 17.6035 11.1839 17.6035H11.2099C11.4092 17.6035 11.5782 17.5298 11.7169 17.3825C11.8642 17.2351 11.9379 17.0618 11.9379 16.8625V16.4075C11.9379 16.3295 11.9725 16.2905 12.0419 16.2905C13.1252 16.2558 13.9399 16.0131 14.4859 15.5625C15.0405 15.1118 15.3179 14.4791 15.3179 13.6645C15.3179 13.1185 15.1879 12.6591 14.9279 12.2865C14.6765 11.9051 14.2519 11.5758 13.6539 11.2985C13.6019 11.2725 13.5845 11.2205 13.6019 11.1425C13.6105 11.1165 13.6149 11.0731 13.6149 11.0125V9.08846C13.6149 9.01913 13.6495 8.99313 13.7189 9.01046C13.8489 9.03646 14.0439 9.08413 14.3039 9.15346C14.4772 9.19679 14.6332 9.16646 14.7719 9.06246C14.9192 8.95846 14.9929 8.81979 14.9929 8.64646V8.33446C14.9929 8.11779 14.9279 7.92279 14.7979 7.74946C14.6679 7.56746 14.4989 7.45479 14.2909 7.41146C14.1695 7.38546 13.9789 7.35513 13.7189 7.32046C13.6495 7.30313 13.6149 7.25979 13.6149 7.19046V6.64446C13.6149 6.44513 13.5412 6.27179 13.3939 6.12446C13.2465 5.97713 13.0732 5.90346 12.8739 5.90346H12.8479C12.6485 5.90346 12.4752 5.97713 12.3279 6.12446C12.1892 6.27179 12.1199 6.44513 12.1199 6.64446V7.08646C12.1199 7.16446 12.0809 7.20346 12.0029 7.20346C10.9282 7.21213 10.1049 7.44179 9.53285 7.89246C8.96952 8.34313 8.68785 8.94546 8.68785 9.69946Z" | ||
fill={ | ||
props.linearGradient | ||
? `url(#${gradientId})` | ||
: disabled | ||
? '#8F8F8F' | ||
: 'currentColor' | ||
} | ||
/> | ||
</g> | ||
<defs> | ||
<linearGradient | ||
id={gradientId} | ||
x1="12.095" | ||
y1="0.398438" | ||
x2="2.30989" | ||
y2="23.5743" | ||
gradientUnits="userSpaceOnUse" | ||
> | ||
<stop | ||
offset="0.00458717" | ||
stopColor={disabled ? '#8F8F8F' : '#7BC796'} | ||
/> | ||
<stop offset="1" stopColor={disabled ? '#EFEFEF' : '#C5E6D1'} /> | ||
</linearGradient> | ||
</defs> | ||
</svg> | ||
); | ||
}; |
Oops, something went wrong.