Commit 59374992 authored by timel's avatar timel

fix: fmt and small

parent 288d456c
Pipeline #22888 failed with stages
in 11 minutes and 47 seconds
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
.content { .content {
display: flex; display: flex;
flex: 1;
padding-bottom: 0; padding-bottom: 0;
padding-right: 1rem; padding-right: 1rem;
.deck { .deck {
......
...@@ -7,22 +7,13 @@ import { ...@@ -7,22 +7,13 @@ import {
SortAscendingOutlined, SortAscendingOutlined,
UndoOutlined, UndoOutlined,
} from "@ant-design/icons"; } from "@ant-design/icons";
import { import { Button, ConfigProvider, Input, Space, type ThemeConfig } from "antd";
Button,
ConfigProvider,
Input,
Layout,
Space,
type ThemeConfig,
} from "antd";
import { Background } from "../Shared"; import { Background } from "../Shared";
import { CardDetail } from "./CardDetail"; import { CardDetail } from "./CardDetail";
import { DeckSelect } from "./DeckSelect"; import { DeckSelect } from "./DeckSelect";
import styles from "./index.module.scss"; import styles from "./index.module.scss";
const { Content, Sider } = Layout;
const theme: ThemeConfig = { const theme: ThemeConfig = {
components: { components: {
Layout: { Layout: {
...@@ -55,10 +46,10 @@ export const Component: React.FC = () => { ...@@ -55,10 +46,10 @@ export const Component: React.FC = () => {
</div> </div>
<CardDetail code={123} open={false} onClose={() => {}} /> <CardDetail code={123} open={false} onClose={() => {}} />
</div> </div>
<Content className={styles.content}> <div className={styles.content}>
<Deck /> <Deck />
<CardSelect /> <CardSelect />
</Content> </div>
</div> </div>
</ConfigProvider> </ConfigProvider>
); );
......
import { EditFilled, SettingFilled } from "@ant-design/icons";
import { ConfigProvider, Select, Space } from "antd"; import { ConfigProvider, Select, Space } from "antd";
import classNames from "classnames"; import classNames from "classnames";
import { type LoaderFunction } from "react-router-dom"; import { type LoaderFunction } from "react-router-dom";
...@@ -5,13 +6,9 @@ import { type LoaderFunction } from "react-router-dom"; ...@@ -5,13 +6,9 @@ import { type LoaderFunction } from "react-router-dom";
import { CookieKeys, setCookie } from "@/api"; import { CookieKeys, setCookie } from "@/api";
import { accountStore, type User } from "@/stores"; import { accountStore, type User } from "@/stores";
import { Background, IconFont } from "@/ui/Shared"; import { Background, IconFont } from "@/ui/Shared";
import { useConfig } from "@/config";
import { SettingFilled, EditFilled } from "@ant-design/icons";
import styles from "./index.module.scss"; import styles from "./index.module.scss";
const NeosConfig = useConfig();
export const loader: LoaderFunction = () => { export const loader: LoaderFunction = () => {
const sso = new URLSearchParams(location.search).get("sso"); const sso = new URLSearchParams(location.search).get("sso");
const user = sso ? getSSOUser(new URLSearchParams(atob(sso))) : undefined; const user = sso ? getSSOUser(new URLSearchParams(atob(sso))) : undefined;
...@@ -96,8 +93,9 @@ const Mode: React.FC<{ ...@@ -96,8 +93,9 @@ const Mode: React.FC<{
title: string; title: string;
desc: string; desc: string;
icon: React.ReactNode; icon: React.ReactNode;
}> = ({ title, desc, icon }) => ( onClick?: () => void;
<div className={styles.mode}> }> = ({ title, desc, icon, onClick }) => (
<div className={styles.mode} onClick={onClick}>
<div className={styles.icon}>{icon}</div> <div className={styles.icon}>{icon}</div>
<div className={styles.title}>{title}</div> <div className={styles.title}>{title}</div>
<div className={styles.desc}>{desc}</div> <div className={styles.desc}>{desc}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment