Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lyoshenka committed Mar 6, 2024
1 parent ecc0e4c commit ea273c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions components/citizenship/InviteClaimFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
PaymentMethod,
} from '@/utils/types/invite'
import styled from 'styled-components'
import { Body1, Caption } from '@/components/core/Typography'
import { Body1 } from '@/components/core/Typography'
import { Button } from '@/components/core/Button'
import { useBackend } from '@/components/hooks/useBackend'
import { useError } from '@/components/hooks/useError'
Expand Down Expand Up @@ -102,7 +102,7 @@ export default function InviteClaimFlow({
goToStep(step)
}
}
}, [alreadyHasAccount, step, sendToCitizenship, router])
}, [alreadyHasAccount, step, sendToCitizenship, router, goToStep])

const proceedButtonReady = !isUserLoading && !isMutating && !isAboutToRedirect

Expand Down
9 changes: 2 additions & 7 deletions components/landing/HeroSection.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import styled from 'styled-components'
import { Body1, H4, HHero } from '@/components/core/Typography'
import { padding } from '@/styles/theme'
import { H4, HHero } from '@/components/core/Typography'
import { SubscribeForm } from '@/components/landing/SubscribeForm'

interface HeroSectionProps {
buttons: JSX.Element[]
}

export const HeroSection = (props: HeroSectionProps) => {
export const HeroSection = () => {
return (
<ExtraPadding>
<Wrapper>
Expand Down
2 changes: 1 addition & 1 deletion components/landing/LandingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const LandingView = () => {
<TopLogoSection />

<LandingSection>
<HeroSection buttons={[]} />
<HeroSection />
</LandingSection>

<LandingSection fullWidth noVertPadding>
Expand Down
4 changes: 3 additions & 1 deletion components/profile/view-profile/ProfileContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const ProfileContent = ({
refetchProfile: () => void
}) => {
const { user: me } = useProfile()
if (!me) return null
if (!me) {
return null // TODO: return a message that you must have an account to view profiles?
}

const isOwnProfile = me?.externId === profile.externId

Expand Down

0 comments on commit ea273c2

Please sign in to comment.