From 847142f44d0920ff2ca927e01b649c9bd1923673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Sharma?= Date: Sat, 4 Jan 2020 13:17:52 -0800 Subject: [PATCH] Support default package icon in offline scenarios (#435) --- .../src/DisplayPackage/DisplayPackage.tsx | 7 +++---- src/BaGet.UI/src/SearchResults.tsx | 6 +++--- .../src/default-package-icon-256x256.png | Bin 0 -> 4833 bytes 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 src/BaGet.UI/src/default-package-icon-256x256.png diff --git a/src/BaGet.UI/src/DisplayPackage/DisplayPackage.tsx b/src/BaGet.UI/src/DisplayPackage/DisplayPackage.tsx index 7725571a..db4ade8c 100644 --- a/src/BaGet.UI/src/DisplayPackage/DisplayPackage.tsx +++ b/src/BaGet.UI/src/DisplayPackage/DisplayPackage.tsx @@ -14,6 +14,7 @@ import SourceRepository from './SourceRepository'; import { Versions, IPackageVersion } from './Versions'; import './DisplayPackage.css'; +import DefaultPackageIcon from "../default-package-icon-256x256.png"; interface IDisplayPackageProps { match: { @@ -60,8 +61,6 @@ class DisplayPackage extends React.Component