get rid of extraneous document reference

This commit is contained in:
Michael Peters 2021-12-30 21:34:23 -06:00
parent 1e437c33ae
commit 155681da04
2 changed files with 2 additions and 3 deletions

View File

@ -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(() => {

View File

@ -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);