Skip to content

Commit 15cf698

Browse files
authored
fix: mf-6446 calendar activation status (#11939)
* fix: mf-6446 calendar activation status * fix: mf-6491 remove restrictions on the height of the images * fix: mf-6286 get sei value * fix: mf-6492 event date
1 parent 2d92290 commit 15cf698

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

packages/plugin-infra/src/manager/site-adaptor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { unreachable } from '@masknet/kit'
22
import { useValueRef } from '@masknet/shared-base-ui'
3-
import { type EnhanceableSite, ValueRef, ValueRefWithReady, Sniffings } from '@masknet/shared-base'
3+
import { type EnhanceableSite, ValueRefWithReady, Sniffings } from '@masknet/shared-base'
44
import { createManager } from './manage.js'
55
import { getPluginDefine } from './store.js'
66
import type { Plugin } from '../types.js'
@@ -70,10 +70,10 @@ useActivatedPluginsSiteAdaptor.visibility = {
7070
}
7171

7272
// this should never be used for a normal plugin
73-
const TRUE = new ValueRef(true)
7473
export function useIsMinimalMode(pluginID: string) {
7574
assertLocation()
76-
return useValueRef(minimalModeSub[pluginID] || TRUE)
75+
const minimalPlugins = useActivatedPluginsSiteAdaptorMinimal()
76+
return minimalPlugins.some((p) => p.ID === pluginID)
7777
}
7878

7979
export async function checkIsMinimalMode(pluginID: string) {

packages/plugins/Calendar/src/SiteAdaptor/components/EventList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export function EventList({ date, onDatesUpdate }: EventListProps) {
166166
</div>
167167
<Typography className={classes.eventTitle}>{entry.event_title}</Typography>
168168
<Typography className={classes.time}>
169-
{format(new Date(date), 'MMM dd, yyyy HH:mm')}
169+
{format(new Date(entry.event_date), 'MMM dd, yyyy HH:mm')}
170170
</Typography>
171171
<ImageLoader src={entry.poster_url} />
172172
</Link>

packages/plugins/Calendar/src/SiteAdaptor/components/ImageLoader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const MASK_LIGHT_FALLBACK = new URL('../assets/mask.light.svg', import.meta.url)
88
const useStyles = makeStyles()((theme) => ({
99
container: {
1010
width: '100%',
11-
height: '156px',
11+
minHeight: '156px',
1212
display: 'flex',
1313
borderRadius: '8px',
1414
justifyContent: 'center',
@@ -19,7 +19,6 @@ const useStyles = makeStyles()((theme) => ({
1919
poster: {
2020
borderRadius: '8px',
2121
width: '100%',
22-
height: '156px',
2322
objectFit: 'cover',
2423
},
2524
iconContainer: {

packages/web3-constants/evm/coingecko.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Cronos": "crypto-com-chain",
3939
"BitTorrent": "bittorrent",
4040
"Boba": "boba-network",
41-
"XLayer": "okb"
41+
"XLayer": "okb",
42+
"Sei": "sei-network"
4243
}
4344
}

packages/web3-providers/src/DeBank/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const DEBANK_CHAIN_TO_CHAIN_ID_MAP: Record<DebankChains, ChainId | number
4848
sbch: ChainId.SmartBitcoinCash,
4949
sdn: ChainId.Shiden,
5050
sgb: ChainId.SongbirdCanary,
51+
sei: ChainId.Sei,
5152
step: ChainId.Step,
5253
swm: 73772,
5354
tlos: ChainId.Telos,

packages/web3-providers/src/DeBank/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type DebankChains =
1515
| 'avax'
1616
| 'base'
1717
| 'boba'
18+
| 'sei'
1819
| 'brise'
1920
| 'bsc'
2021
| 'btt'

0 commit comments

Comments
 (0)