Skip to content

Commit

Permalink
fix: remove app icon from application board only (#11315)
Browse files Browse the repository at this point in the history
* Revert "fix: mf-6007 remove friend tech from application board (#11312)"

This reverts commit 106717b.

* fix: remove app icon from application board only
  • Loading branch information
UncleBill authored and guanbinrui committed Jan 30, 2024
1 parent 9b70f65 commit 5dc89e0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/plugins/FriendTech/src/SiteAdaptor/index.tsx
@@ -1,4 +1,7 @@
import { Icons } from '@masknet/icons'
import type { Plugin } from '@masknet/plugin-infra'
import { PluginID } from '@masknet/shared-base'
import { Trans } from 'react-i18next'
import { base } from '../base.js'
import { FriendTechInjection } from './FriendTechInjection.js'
import { FriendTechNameWidget } from './FriendTechNameWidget.js'
Expand All @@ -8,6 +11,21 @@ const site: Plugin.SiteAdaptor.Definition = {
GlobalInjection() {
return <FriendTechInjection />
},
ApplicationEntries: [
(() => {
const icon = <Icons.FriendTech size={36} />
const name = <Trans ns={PluginID.FriendTech} i18nKey="name" />
const iconFilterColor = 'rgba(1, 186, 250, 0.20)'
return {
ApplicationEntryID: base.ID,
icon,
category: 'dapp',
description: <Trans ns={PluginID.FriendTech} i18nKey="description" />,
name,
iconFilterColor,
}
})(),
],
NameWidget: {
ID: `${base.ID}_name_widget`,
priority: 2,
Expand Down

0 comments on commit 5dc89e0

Please sign in to comment.