get rid of extraneous document reference
This commit is contained in:
parent
1e437c33ae
commit
155681da04
@ -35,7 +35,7 @@ const ConnectionInfoContextMenu: FC<ConnectionInfoContextMenuProps> = (props: Co
|
||||
|
||||
const openPersonalize = useCallback(() => {
|
||||
close();
|
||||
setOverlay(<PersonalizeOverlay document={document} guild={guild} selfMember={selfMember} close={() => setOverlay(null)} />);
|
||||
setOverlay(<PersonalizeOverlay guild={guild} selfMember={selfMember} close={() => setOverlay(null)} />);
|
||||
}, [ guild, selfMember, close ]);
|
||||
|
||||
const alignment = useMemo(() => {
|
||||
|
@ -16,13 +16,12 @@ import Overlay from '../components/overlay';
|
||||
import { useResourceSubscription } from '../require/guild-subscriptions';
|
||||
|
||||
export interface PersonalizeOverlayProps {
|
||||
document: Document;
|
||||
guild: CombinedGuild;
|
||||
selfMember: Member;
|
||||
close: () => void;
|
||||
}
|
||||
const PersonalizeOverlay: FC<PersonalizeOverlayProps> = (props: PersonalizeOverlayProps) => {
|
||||
const { document, guild, selfMember, close } = props;
|
||||
const { guild, selfMember, close } = props;
|
||||
|
||||
const rootRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user