Skip to content

Commit 928d6de

Browse files
committed
update: 排序icon
1 parent 97b7ff2 commit 928d6de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/PreviewPane.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useMemo, useState, useCallback } from 'react'
22
import { App, Button, Checkbox, Divider, Empty, Input, Modal, Progress, Tooltip, Typography } from 'antd'
3-
import { AppstoreOutlined, DeleteOutlined, ExportOutlined, FolderOpenOutlined, FolderOutlined, SortAscendingOutlined, UnorderedListOutlined } from '@ant-design/icons'
3+
import { AppstoreOutlined, DeleteOutlined, ExportOutlined, FolderOpenOutlined, FolderOutlined, SortAscendingOutlined, SortDescendingOutlined, UnorderedListOutlined } from '@ant-design/icons'
44
import type { ArchiveFolder, Conversation } from '@shared/types'
55

66
interface Props {
@@ -274,7 +274,7 @@ export function PreviewPane({ conversation, nonce, exporting, onCountChange }: P
274274
</Tooltip>
275275
<span style={{ borderLeft: '1px solid var(--border)', height: 18, margin: '0 2px' }} />
276276
<Tooltip title={sortAsc ? '从旧到新' : '从新到旧'}>
277-
<Button type="text" size="small" icon={<SortAscendingOutlined style={{ transform: sortAsc ? 'scaleY(1)' : 'scaleY(-1)' }} />} onClick={() => setSortAsc((v) => !v)}
277+
<Button type="text" size="small" icon={sortAsc ? <SortAscendingOutlined /> : <SortDescendingOutlined />} onClick={() => setSortAsc((v) => !v)}
278278
style={{ color: 'var(--text-2)', padding: '0 4px' }} />
279279
</Tooltip>
280280
<Tooltip title="打开临时目录">

0 commit comments

Comments
 (0)