mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-02-11 04:00:32 +08:00
Merge branch 'smart_core' of https://github.com/mihomo-party-org/clash-party into smart_core
This commit is contained in:
commit
38389e0c3c
@ -261,17 +261,19 @@ const App: React.FC = () => {
|
|||||||
<div className="mt-2 mx-2">
|
<div className="mt-2 mx-2">
|
||||||
<OutboundModeSwitcher />
|
<OutboundModeSwitcher />
|
||||||
</div>
|
</div>
|
||||||
<DndContext sensors={sensors} collisionDetection={closestCorners} onDragEnd={onDragEnd}>
|
<div style={{ overflowX: 'clip' }}>
|
||||||
<div className="grid grid-cols-2 gap-2 m-2">
|
<DndContext sensors={sensors} collisionDetection={closestCorners} onDragEnd={onDragEnd}>
|
||||||
<SortableContext items={order}>
|
<div className="grid grid-cols-2 gap-2 m-2">
|
||||||
{order.map((key: string) => {
|
<SortableContext items={order}>
|
||||||
const Component = componentMap[key]
|
{order.map((key: string) => {
|
||||||
if (!Component) return null
|
const Component = componentMap[key]
|
||||||
return <Component key={key} />
|
if (!Component) return null
|
||||||
})}
|
return <Component key={key} />
|
||||||
</SortableContext>
|
})}
|
||||||
</div>
|
</SortableContext>
|
||||||
</DndContext>
|
</div>
|
||||||
|
</DndContext>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user