Add account based multiplayer hosting and bug report retention
This commit is contained in:
@@ -36,7 +36,13 @@ type Draft = {
|
||||
banned_at: string | null;
|
||||
ban_reason: string | null;
|
||||
};
|
||||
export function DraftEditor({ id }: { id: string }) {
|
||||
export function DraftEditor({
|
||||
id,
|
||||
hostName,
|
||||
}: {
|
||||
id: string;
|
||||
hostName: string;
|
||||
}) {
|
||||
const { t } = useI18n();
|
||||
const dirty = useRef(false);
|
||||
const [draft, setDraft] = useState<Draft | null>(null),
|
||||
@@ -180,7 +186,9 @@ export function DraftEditor({ id }: { id: string }) {
|
||||
"This shared map is private and playable without moderator review. Only the original owner can submit it for public review.",
|
||||
)}
|
||||
</p>
|
||||
{draft.state === "draft" && <StartGame datasetId={id} />}
|
||||
{draft.state === "draft" && (
|
||||
<StartGame datasetId={id} hostName={hostName} />
|
||||
)}
|
||||
</section>
|
||||
)}
|
||||
{!draft.parent_dataset_id &&
|
||||
|
||||
Reference in New Issue
Block a user