mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-26 23:30:09 +08:00
chore(dev): add React profiling and focused A/B workflows
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Paper as MuiPaper } from 'fixture-material'
|
||||
export * from 'fixture-material'
|
||||
|
||||
import { fixture } from './state'
|
||||
|
||||
export function Paper(props: any) {
|
||||
const { onClick, elevation, children, sx } = props
|
||||
if (onClick && sx?.maxWidth === 160) {
|
||||
fixture.tabRenders.push({
|
||||
active: elevation === 2,
|
||||
indicator: Boolean(children[2]),
|
||||
label: children[1].props.children,
|
||||
})
|
||||
}
|
||||
return <MuiPaper {...props} />
|
||||
}
|
||||
Reference in New Issue
Block a user