-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [BUGFIX]: FIx glitch when resizing window on Market + big space on …
…clearable element in Search in Market
- Loading branch information
1 parent
bc92d16
commit f5810f0
Showing
8 changed files
with
63 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"ledger-live-desktop": patch | ||
--- | ||
|
||
FIx glitch when resizing window on Market + big space on clearable element in Search in Market |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
apps/ledger-live-desktop/src/renderer/screens/market/components/SearchInputComponent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Flex, SearchInput } from "@ledgerhq/react-ui"; | ||
|
||
import React from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import styled from "styled-components"; | ||
import { withV3StyleProvider } from "~/renderer/styles/StyleProviderV3"; | ||
|
||
const SearchContainer = styled(Flex).attrs({ flexShrink: "1" })` | ||
> div { | ||
width: 100%; | ||
} | ||
`; | ||
|
||
type Props = { | ||
search: string; | ||
updateSearch: (value: string) => void; | ||
}; | ||
|
||
function SearchInputComponent({ search, updateSearch }: Props) { | ||
const { t } = useTranslation(); | ||
return ( | ||
<SearchContainer> | ||
<SearchInput | ||
data-test-id="market-search-input" | ||
value={search} | ||
onChange={updateSearch} | ||
placeholder={t("common.search")} | ||
clearable | ||
/> | ||
</SearchContainer> | ||
); | ||
} | ||
|
||
export default withV3StyleProvider(SearchInputComponent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters