mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
feat: allow user use Authing to get token
This commit is contained in:
parent
af32534288
commit
79847adbb3
5 changed files with 118 additions and 192 deletions
|
|
@ -5,6 +5,9 @@ import { TabPanel, TabContext, TabList } from '@material-ui/lab';
|
|||
import { SupportedStorageServices } from '@services/types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import GitHubLogin from './AuthingLoginButton';
|
||||
import { GitTokenForm } from './GitTokenForm';
|
||||
|
||||
const Container = styled.div`
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
|
@ -47,7 +50,9 @@ export function TokenForm(): JSX.Element {
|
|||
<Tab label="GitLab" value={SupportedStorageServices.gitlab} />
|
||||
<Tab label="Gitee" value={SupportedStorageServices.gitee} />
|
||||
</TabList>
|
||||
<TabPanel value={SupportedStorageServices.github}>Item One</TabPanel>
|
||||
<TabPanel value={SupportedStorageServices.github}>
|
||||
<GitTokenForm storageService={SupportedStorageServices.github} />
|
||||
</TabPanel>
|
||||
<TabPanel value={SupportedStorageServices.gitlab}>Item Two</TabPanel>
|
||||
<TabPanel value={SupportedStorageServices.gitee}>Item Two</TabPanel>
|
||||
</TabsContainer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue