add role search prototype

This commit is contained in:
41666 2021-07-08 14:53:40 -05:00
parent 38e2aa1c50
commit ef63260bd5
6 changed files with 113 additions and 23 deletions

View file

@ -17,7 +17,6 @@ export type EditorShellProps = {
export const EditorShell = (props: EditorShellProps) => {
const [guild, setGuild] = React.useState<PresentableGuild>(props.guild);
const [reorderMode, setReorderMode] = React.useState<boolean>(false);
React.useEffect(() => {
setGuild(props.guild);
@ -43,10 +42,10 @@ export const EditorShell = (props: EditorShellProps) => {
props.onGuildChange?.(guild);
};
const hasChanges = React.useMemo(
() => !deepEqual(guild.data, props.guild.data),
[guild.data, props.guild.data]
);
const hasChanges = React.useMemo(() => !deepEqual(guild.data, props.guild.data), [
guild.data,
props.guild.data,
]);
return (
<>