Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix styles #370

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Blog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function Blog() {
<div className="-ml-16 w-4/5 md:w-1/2 ">
<img src={assets.PEANUTMAN_SAD.src} className="h-full w-auto" />
</div>
<div className="my-32 inline flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic text-black lg:self-auto lg:text-3xl">
<div className="my-32 flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic text-black lg:self-auto lg:text-3xl">
<span className="font-bold dark:text-white">{'<'} No blog posts yet! Check back later!</span>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Claim/Link/Initial.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ export const InitialClaimLinkView = ({
!isValidRecipient ||
isXchainLoading ||
inputChanging ||
(hasFetchedRoute && !selectedRoute)
(hasFetchedRoute && !selectedRoute) ||
recipient.address.length === 0
}
>
{isLoading || isXchainLoading ? (
Expand Down
18 changes: 4 additions & 14 deletions src/components/Global/AddressInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ const AddressInput = ({
setRecipientType('iban')
setType('iban')
setAddress(recipient)
onSubmit(userInput, recipient)
} else if (/^[0-9]{6,17}$/.test(recipient)) {
setIsValidRecipient(true)
_setIsValidRecipient(true)
setRecipientType('us')
setType('us')
setAddress(recipient)
onSubmit(userInput, recipient)
} else if (recipient.toLowerCase().endsWith('.eth')) {
const resolvedAddress = await utils.resolveFromEnsName(recipient.toLowerCase())
if (resolvedAddress) {
Expand All @@ -56,6 +58,7 @@ const AddressInput = ({
setAddress(recipient)
setRecipientType('ens')
setType('ens')
onSubmit(userInput, recipient)
} else {
setIsValidRecipient(false)
_setIsValidRecipient(false)
Expand All @@ -66,6 +69,7 @@ const AddressInput = ({
_setIsValidRecipient(true)
setRecipientType('address')
setType('address')
onSubmit(undefined, recipient)
} else {
setIsValidRecipient(false)
_setIsValidRecipient(false)
Expand All @@ -81,20 +85,6 @@ const AddressInput = ({

useEffect(() => {
if (recipient && isValidRecipient) {
switch (type) {
case 'address':
onSubmit(undefined, recipient)
break
case 'ens':
onSubmit(userInput, recipient)
break
case 'iban':
onSubmit(userInput, recipient)
break
case 'us':
onSubmit(userInput, recipient)
break
}
_setIsValidRecipient(true)
}
}, [recipient])
Expand Down
2 changes: 1 addition & 1 deletion src/components/Jobs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function Jobs() {
<div className="-ml-16 w-4/5 md:w-1/2 ">
<img src={assets.PEANUTMAN_HAPPY.src} className="h-full w-auto" />
</div>
<div className="my-32 inline flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic text-black dark:text-white lg:self-auto lg:text-3xl">
<div className="my-32 flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic text-black dark:text-white lg:self-auto lg:text-3xl">
<div>
<span className="font-bold">{'<'} Hey there! Want to work at Peanut?</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Privacy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function Privacy() {
<div className="-ml-16 w-4/5 md:w-1/2 ">
<img src={assets.PEANUTMAN_CHEERING.src} className="h-full w-auto" />
</div>
<div className="my-32 inline flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic lg:self-auto lg:text-3xl">
<div className="my-32 flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic lg:self-auto lg:text-3xl">
<div>
<span className="font-bold">{'<'} Hey there! This is how we treat ur data.</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Profile/Components/SkeletonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ProfileSkeleton = ({
const { address } = useAccount()

return (
<div className="relative flex h-full w-full flex-row flex-col items-center justify-start gap-4 px-4">
<div className="relative flex h-full w-full flex-col items-center justify-start gap-4 px-4">
<div className="relative z-0 flex w-full flex-col items-center justify-center gap-2">
<div className="flex w-full flex-col items-center justify-center gap-2 sm:flex-row sm:justify-between">
<div className="flex w-full flex-col items-center justify-center gap-2 sm:w-max sm:flex-row">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const Profile = () => {
)
} else
return (
<div className="flex h-full w-full flex-row flex-col items-center justify-start gap-4 px-4">
<div className="flex h-full w-full flex-col items-center justify-start gap-4 px-4">
<div className={`flex w-full flex-col items-center justify-center gap-2 `}>
<div className="flex w-full flex-col items-center justify-center gap-2 sm:flex-row sm:justify-between ">
<div className="flex w-full flex-col items-center justify-center gap-2 sm:w-max sm:flex-row">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Terms/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function Terms() {
<div className="-ml-16 w-4/5 md:w-1/2 ">
<img src={assets.PEANUTMAN_PRESENTING.src} className="h-full w-auto" />
</div>
<div className="my-32 inline flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic lg:self-auto lg:text-3xl">
<div className="my-32 flex w-3/4 flex-col justify-center gap-0 self-end px-8 text-xl font-light italic lg:self-auto lg:text-3xl">
<div>
<span className="font-bold">{'<'} Hey there! These are our TOS.</span>
</div>
Expand Down
Loading