mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +02:00
update command keys (#2271)
This commit is contained in:
@@ -53,10 +53,10 @@ const ToggleSwitch = () => {
|
||||
onClick={() => handleTabChange("search")}
|
||||
>
|
||||
<SearchIcon size={16} className="mr-2" />
|
||||
<p className="items-baseline flex">
|
||||
<div className="flex items-end">
|
||||
Search
|
||||
<span className="text-xs ml-2">{commandSymbol}S</span>
|
||||
</p>
|
||||
<div className="ml-2 flex items-end">{commandSymbol}S</div>
|
||||
</div>
|
||||
</button>
|
||||
<button
|
||||
className={`px-4 py-2 rounded-full text-sm font-medium transition-colors duration-300 ease-in-out flex items-center relative z-10 ${
|
||||
@@ -67,10 +67,10 @@ const ToggleSwitch = () => {
|
||||
onClick={() => handleTabChange("chat")}
|
||||
>
|
||||
<ChatIcon size={16} className="mr-2" />
|
||||
<p className="items-baseline flex">
|
||||
<div className="items-end flex">
|
||||
Chat
|
||||
<span className="text-xs ml-2">{commandSymbol}D</span>
|
||||
</p>
|
||||
<div className="ml-2 flex items-end">{commandSymbol}D</div>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
@@ -2754,3 +2754,45 @@ export const CameraIcon = ({
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
export const MacIcon = ({
|
||||
size = 16,
|
||||
className = "my-auto flex flex-shrink-0 ",
|
||||
}: IconProps) => {
|
||||
return (
|
||||
<svg
|
||||
style={{ width: `${size}px`, height: `${size}px` }}
|
||||
className={`w-[${size}px] h-[${size}px] ` + className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="200"
|
||||
height="200"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M6.5 4.5a2 2 0 0 1 2 2v2h-2a2 2 0 1 1 0-4Zm4 4v-2a4 4 0 1 0-4 4h2v3h-2a4 4 0 1 0 4 4v-2h3v2a4 4 0 1 0 4-4h-2v-3h2a4 4 0 1 0-4-4v2h-3Zm0 2h3v3h-3v-3Zm5-2v-2a2 2 0 1 1 2 2h-2Zm0 7h2a2 2 0 1 1-2 2v-2Zm-7 0v2a2 2 0 1 1-2-2h2Z"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
export const WindowsIcon = ({
|
||||
size = 16,
|
||||
className = "my-auto flex flex-shrink-0 ",
|
||||
}: IconProps) => {
|
||||
return (
|
||||
<svg
|
||||
style={{ width: `${size}px`, height: `${size}px` }}
|
||||
className={`w-[${size}px] h-[${size}px] ` + className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
width="24"
|
||||
height="24"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M3 3h8v8H3V3zm10 0h8v8h-8V3zm-10 10h8v8H3v-8zm10 0h8v8h-8v-8z"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
@@ -1,5 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { MacIcon, WindowsIcon } from "@/components/icons/icons";
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
type OperatingSystem = "Windows" | "Mac" | "Other";
|
||||
@@ -23,9 +24,9 @@ const KeyboardSymbol = () => {
|
||||
const os = useOperatingSystem();
|
||||
|
||||
if (os === "Windows") {
|
||||
return "⊞";
|
||||
return <WindowsIcon size={12} />;
|
||||
} else {
|
||||
return "⌘";
|
||||
return <MacIcon size={12} />;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user