Skip to content

Commit

Permalink
chore: 更换icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DDMeaqua committed Sep 10, 2024
1 parent e578c5f commit 18e2403
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import SizeIcon from "../icons/size.svg";
import QualityIcon from "../icons/hd.svg";
import StyleIcon from "../icons/palette.svg";
import PluginIcon from "../icons/plugin.svg";
import ShortcutkeyIcon from "../icons/shortcutkey.svg";

import {
ChatMessage,
Expand Down Expand Up @@ -437,6 +438,7 @@ export function ChatActions(props: {
showPromptHints: () => void;
hitBottom: boolean;
uploading: boolean;
setShowShortcutKeyModal: () => void;
}) {
const config = useAppConfig();
const navigate = useNavigate();
Expand Down Expand Up @@ -755,6 +757,12 @@ export function ChatActions(props: {
}}
/>
)}

<ChatAction
onClick={() => props.setShowShortcutKeyModal(true)}
text={Locale.Chat.ShortcutKey.Title}
icon={<ShortcutkeyIcon />}
/>
</div>
);
}
Expand Down Expand Up @@ -1814,6 +1822,7 @@ function _Chat() {
setUserInput("/");
onSearch("");
}}
setShowShortcutKeyModal={setShowShortcutKeyModal}
/>
<label
className={`${styles["chat-input-panel-inner"]} ${
Expand Down
1 change: 1 addition & 0 deletions app/icons/shortcutkey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 18e2403

Please sign in to comment.