Skip to content

Commit

Permalink
npx eslint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xdzqyyds committed Nov 27, 2024
1 parent 15b36aa commit 691ab67
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions webapp/components/join.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useEffect, useState } from 'react'
import { useState } from 'react'
import { useAtom } from 'jotai'
import {
locationAtom,
meetingIdAtom,
} from '../store/atom'
import { getStorage, setStorage, delStorage, setStorageStream, setStorageMeeting } from '../lib/storage'
import { newRoom, newUser, setApiToken, setRoomId } from '../lib/api'
import { newUser, setApiToken, setRoomId } from '../lib/api'

export default function Join() {
const [loc, setLoc] = useAtom(locationAtom)
const [, setLoc] = useAtom(locationAtom)
const [__, setAtomMeetingId] = useAtom(meetingIdAtom)
//const [tmpId, setTmpId] = useState<string>('')
const [selectedRoom, setSelectedRoom] = useState<string>('') // 用于存储选择的房间号
Expand All @@ -32,13 +32,6 @@ export default function Join() {
if (user.stream) setStorageStream(user.stream)
}

const newMeeting = async () => {
await getLoginStatus()
const meetingId = (await newRoom()).roomId
enterMeeting(meetingId)
setRoomId(meetingId)
}

const joinMeeting = async () => {
await getLoginStatus()
const meetingId = selectedRoom
Expand Down

0 comments on commit 691ab67

Please sign in to comment.