import React, { useState } from 'react' import { Button, DialogContent, TextField, Typography } from '@mui/material' import { makeStyles } from 'tss-react/mui' import { Dialog } from '@jbrowse/core/ui' const useStyles = makeStyles()(theme => ({ root: { margin: theme.spacing(1), }, paper: { display: 'flex', flexDirection: 'column', padding: theme.spacing(2), }, imgContainer: { display: 'flex', justifyContent: 'center', }, img: { width: 100, maxWidth: '100%', maxHeight: '100%', verticalAlign: 'middle', }, helperTextContainer: { paddingTop: theme.spacing(2), paddingBottom: theme.spacing(2), }, submitTokenContainer: { display: 'flex', flexDirection: 'column', }, buttonContainer: { display: 'flex', justifyContent: 'flex-end', }, alertContainer: { paddingBottom: theme.spacing(2), }, })) export default function LoginDialogue({ handleClose, }: { handleClose: (arg?: string) => void }) { const [token, setToken] = useState('') const { classes } = useStyles() return ( { handleClose() }} maxWidth="sm" title="Login to access controlled GDC data" >
GDC Data Portal
Login to access controlled data An authentication token is required to access controlled data. You will need to provide your authentication token every time you start a new session, as the token is deleted when the session expires.
{ setToken(event.target.value) }} />
) }