refactor: move blog related options to a accordion

This commit is contained in:
lin onetwo 2023-05-22 13:55:41 +08:00
parent 3094eb764b
commit c081711f58
22 changed files with 175 additions and 153 deletions

View file

@ -1,11 +1,12 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { ListItemText as ListItemTextRaw, Tab as TabRaw } from '@material-ui/core';
import { Tab as TabRaw } from '@material-ui/core';
import { TabContext, TabList as TabListRaw, TabPanel as TabPanelRaw } from '@material-ui/lab';
import { SupportedStorageServices } from '@services/types';
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import styled, { DefaultTheme, keyframes } from 'styled-components';
import { ListItemText } from '../ListItem';
import { GitTokenForm } from './GitTokenForm';
const Container = styled.div`
@ -14,16 +15,6 @@ const Container = styled.div`
flex-direction: column;
background-color: ${({ theme }) => theme.palette.background.paper};
`;
export const ListItemText: typeof ListItemTextRaw = styled(ListItemTextRaw)`
color: ${({ theme }) => theme.palette.text.primary};
input {
color: ${({ theme }) => theme.palette.text.primary};
}
p,
label {
color: ${({ theme }) => theme.palette.text.secondary};
}
`;
const TabPanel = styled(TabPanelRaw)`
padding: 5px 0 !important;
padding-left: 16px !important;