diff --git a/src/PartyPage.tsx b/src/PartyPage.tsx index da3bca4..169cdd5 100644 --- a/src/PartyPage.tsx +++ b/src/PartyPage.tsx @@ -1,11 +1,10 @@ - -import React, { useContext, useMemo } from 'react'; +import React, { useContext } from 'react'; +import { PartyContext, SelfStatus } from './PartyContext'; import './PartyPage.css'; -import { PartyContext, PartyStatus, SelfStatus } from './PartyContext'; import { modifySelfRequest } from './partyApi'; export const PartyPage: React.FC = () => { - const {party, self: me, endpoint, refresh} = useContext(PartyContext); + const {self: me, endpoint, refresh} = useContext(PartyContext); const setComing = async (value: SelfStatus["coming"]) => { await modifySelfRequest(endpoint, { coming: value }); await refresh();