mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-15 17:30:30 +00:00
Refactor homepage search, visual improvement
This commit is contained in:
parent
fe770c3864
commit
3249c95a74
4 changed files with 29 additions and 16 deletions
|
@ -8,7 +8,7 @@ import Widget from "./widget";
|
|||
import Docker from "widgets/docker/component";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
function resolveIcon(icon) {
|
||||
export function resolveIcon(icon) {
|
||||
// direct or relative URLs
|
||||
if (icon.startsWith("http") || icon.startsWith("/")) {
|
||||
return <Image src={`${icon}`} width={32} height={32} alt="logo" />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue