Skip to content

Commit

Permalink
Minor fixes + isExternal for non admins
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Mar 12, 2024
1 parent 8570fb1 commit f150a67
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/themes/pxll/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,17 @@ const processes = [
},
]

const PlataformaWrapper = () => {
const [logged, setLogged] = useState<boolean>(false)

return (
<ElectionProvider id={processes[0].pid}>
<PxLL />
</ElectionProvider>
)
}
const PlataformaWrapper = () => (
<ElectionProvider id={processes[0].pid}>
<PxLL />
</ElectionProvider>
)

const PxLL = () => {
const videoRef = useRef<HTMLDivElement>(null)
const [videoTop, setVideoTop] = useState<boolean>(false)
const [connected, setConnected] = useState<boolean>(false)
const { loading, loaded, election, errors } = useElection()
const { loading, loaded, election } = useElection()
const { account, connected: aconnected } = useClient()

useEffect(() => {
Expand Down Expand Up @@ -227,7 +223,7 @@ const PxLL = () => {
transform: 'scale(0.9)',
}}
to={`/processes/${process.pid}/${window.location.hash}`}
isExternal
isExternal={!isAdmin}
>
<Box>
<Text fontSize='18px'>
Expand Down

0 comments on commit f150a67

Please sign in to comment.