Skip to content

Commit

Permalink
fix: fix and changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
RamyEB committed Apr 30, 2024
1 parent 18a2d79 commit 9803689
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .changeset/hot-zebras-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"ledger-live-desktop": patch
"live-mobile": patch
"@ledgerhq/live-common": patch
---

Save locally added manifest into the storage on both Mobile and Desktop client
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function PlatformAppProviderWrapper({ children }: PlatformAppProviderWrap
}

function useLocalLiveAppDB() {
//TODO : Change key to DISCOVER_STORE_KEY
return useDB("app", "DISCOVER_STORE_KEY", INITIAL_PLATFORM_STATE, state => state.localLiveApp);
return useDB("app", DISCOVER_STORE_KEY, INITIAL_PLATFORM_STATE, state => {
return state.localLiveApp;
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { SectionHeader } from "./SectionHeader";
import { useTranslation } from "react-i18next";

export function LocalLiveAppSection({ localLiveApps }: { localLiveApps: LiveAppManifest[] }) {
console.log("localLiveApps", localLiveApps);
const history = useHistory();
const { t } = useTranslation();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export function useCatalog(recentlyUsedDB: RecentlyUsedDB) {
const recentlyUsed = useRecentlyUsed(combinedManifests, recentlyUsedDB);
const { state: localLiveApps } = useLocalLiveAppContext();

console.log(useLocalLiveAppContext());

const search = useSearch({
list: combinedManifests,
options: BROWSE_SEARCH_OPTIONS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ const AppCard = ({ manifest, onPress }: Props) => {
[colors, manifest.branch],
);

let description = "";

description = useMemo(
const description = useMemo(
() => translateContent(manifest.content.shortDescription, locale),
[locale, manifest.content.shortDescription],
);
Expand Down

0 comments on commit 9803689

Please sign in to comment.