Compare commits
1 Commits
7cfb0e482f
...
v0.2.0
Author | SHA1 | Date | |
---|---|---|---|
f8372b8de8 |
@ -55,8 +55,8 @@ const useClass = createUseStyles({
|
||||
|
||||
export const LocalSharing: React.FC = () => {
|
||||
const classes = useClass();
|
||||
const {id, name, set, setChannel} = useLocalStore();
|
||||
const [rtc, setRTC] = useState<RTCPeerConnection>();
|
||||
const {id, name, set, } = useLocalStore();
|
||||
const [_rtc, setRTC] = useState<RTCPeerConnection>();
|
||||
const rtcRef = useRef<RTCPeerConnection | null>(null);
|
||||
const [clients, setClients] = useState<Client[]>([]);
|
||||
const {connect, close} = useWebsocket({});
|
||||
|
@ -1,13 +1,12 @@
|
||||
import {useState} from "react";
|
||||
import {createUseStyles} from "react-jss";
|
||||
import {Dialog} from "../../component/dialog/dialog.tsx";
|
||||
|
||||
const useClass = createUseStyles({
|
||||
container: {}
|
||||
})
|
||||
export const TestPage = () => {
|
||||
const classes = useClass()
|
||||
const [open, setOpen] = useState<boolean>(false)
|
||||
const [_open, setOpen] = useState<boolean>(false)
|
||||
|
||||
const handleOpen = () => {
|
||||
setOpen(true)
|
||||
@ -15,8 +14,5 @@ export const TestPage = () => {
|
||||
|
||||
return <div className={classes.container}>
|
||||
<button onClick={handleOpen}>open</button>
|
||||
<Dialog open={open} title="hello world" >
|
||||
<input />
|
||||
</Dialog>
|
||||
</div>
|
||||
}
|
@ -8,7 +8,7 @@ export interface LocalStore {
|
||||
setChannel: (chan?: RTCDataChannel) => void;
|
||||
}
|
||||
|
||||
export const useLocalStore = create<LocalStore>()((_set, get) => ({
|
||||
export const useLocalStore = create<LocalStore>()((_set, _get) => ({
|
||||
id: '',
|
||||
name: '',
|
||||
set: (id: string, name: string) => {
|
||||
|
Reference in New Issue
Block a user