mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Start cleaning up the mess of useServer; make startup page update in real time
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import React, { memo } from 'react';
|
||||
import { usePermissions } from '@/plugins/usePermissions';
|
||||
import isEqual from 'react-fast-compare';
|
||||
|
||||
interface Props {
|
||||
action: string | string[];
|
||||
@@ -23,4 +24,4 @@ const Can = ({ action, matchAny = false, renderOnError, children }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default Can;
|
||||
export default memo(Can, isEqual);
|
||||
|
||||
Reference in New Issue
Block a user