Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

chore(SearchBar):hide-ui-element

Aswin Asok7a1110caddb3
diff --git a/web/packages/new/photos/components/SearchBar.tsx b/web/packages/new/photos/components/SearchBar.tsx
index ae15c2ffe5..b3ca0d8f55 100644
--- a/web/packages/new/photos/components/SearchBar.tsx
+++ b/web/packages/new/photos/components/SearchBar.tsx
@@ -357,13 +357,14 @@ const createSelectStyles = (
});
const Control = ({ children, ...props }: ControlProps<SearchOption, false>) => {
- const isMac =
- typeof navigator !== "undefined" &&
- navigator.userAgent.toUpperCase().includes("MAC");
- const shortcutKey = isMac ? "⌘ K" : "Ctrl + K";
+ // The shortcut UI element will be shown once the search bar supports searching the settings as well.
+ // const isMac =
+ // typeof navigator !== "undefined" &&
+ // navigator.userAgent.toUpperCase().includes("MAC");
+ // const shortcutKey = isMac ? "⌘ K" : "Ctrl + K";
- const hasValue =
- props.getValue().length > 0 || props.selectProps.inputValue;
+ // const hasValue =
+ // props.getValue().length > 0 || props.selectProps.inputValue;
return (
<SelectComponents.Control {...props}>
@@ -387,7 +388,7 @@ const Control = ({ children, ...props }: ControlProps<SearchOption, false>) => {
{iconForOption(props.getValue()[0])}
</Box>
{children}
- {!hasValue && (
+ {/* {!hasValue && (
<Box
sx={{
display: ["none", "none", "inline-flex"],
@@ -406,7 +407,7 @@ const Control = ({ children, ...props }: ControlProps<SearchOption, false>) => {
>
{shortcutKey}
</Box>
- )}
+ )} */}
</Stack>
</SelectComponents.Control>
);