Skip to content

Commit 18e2403

Browse files
committed
chore: 更换icon
1 parent e578c5f commit 18e2403

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/components/chat.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import SizeIcon from "../icons/size.svg";
4242
import QualityIcon from "../icons/hd.svg";
4343
import StyleIcon from "../icons/palette.svg";
4444
import PluginIcon from "../icons/plugin.svg";
45+
import ShortcutkeyIcon from "../icons/shortcutkey.svg";
4546

4647
import {
4748
ChatMessage,
@@ -437,6 +438,7 @@ export function ChatActions(props: {
437438
showPromptHints: () => void;
438439
hitBottom: boolean;
439440
uploading: boolean;
441+
setShowShortcutKeyModal: () => void;
440442
}) {
441443
const config = useAppConfig();
442444
const navigate = useNavigate();
@@ -755,6 +757,12 @@ export function ChatActions(props: {
755757
}}
756758
/>
757759
)}
760+
761+
<ChatAction
762+
onClick={() => props.setShowShortcutKeyModal(true)}
763+
text={Locale.Chat.ShortcutKey.Title}
764+
icon={<ShortcutkeyIcon />}
765+
/>
758766
</div>
759767
);
760768
}
@@ -1814,6 +1822,7 @@ function _Chat() {
18141822
setUserInput("/");
18151823
onSearch("");
18161824
}}
1825+
setShowShortcutKeyModal={setShowShortcutKeyModal}
18171826
/>
18181827
<label
18191828
className={`${styles["chat-input-panel-inner"]} ${

app/icons/shortcutkey.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)