Files
Compass/web/pages/vote.tsx
Martin Braquet ba9b3cfb06 Add pretty formatting (#29)
* Test

* Add pretty formatting

* Fix Tests

* Fix Tests

* Fix Tests

* Fix

* Add pretty formatting fix

* Fix

* Test

* Fix tests

* Clean typeckech

* Add prettier check

* Fix api tsconfig

* Fix api tsconfig

* Fix tsconfig

* Fix

* Fix

* Prettier
2026-02-20 17:32:27 +01:00

32 lines
918 B
TypeScript

import {Col} from 'web/components/layout/col'
import {PageBase} from 'web/components/page-base'
import {SEO} from 'web/components/SEO'
import {VoteComponent} from 'web/components/votes/vote-info'
import {CompassLoadingIndicator} from 'web/components/widgets/loading-indicator'
import {useUser} from 'web/hooks/use-user'
import {useT} from 'web/lib/locale'
export default function VotePage() {
const t = useT()
const user = useUser()
// console.log('user:', user)
return (
<PageBase trackPageView={'vote page'} className={'relative p-2 sm:pt-0'}>
<SEO
title={t('vote.seo.title', 'Proposals')}
description={t('vote.seo.description', 'A place to vote on decisions')}
url={`/vote`}
/>
{user === undefined ? (
<CompassLoadingIndicator />
) : (
<Col className={'gap-4'}>
<VoteComponent />
</Col>
)}
</PageBase>
)
}