generated from partypages/party-template
This commit is contained in:
parent
df173884d4
commit
e3bba5d78e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user