-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into err_circles
- Loading branch information
Showing
8 changed files
with
41 additions
and
5,675 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { MutationHook } from '@common/types/hooks'; | ||
import { useHook, useMutationHook } from '@common/utils/useHook'; | ||
|
||
export type UseGetAccountinfo<H extends MutationHook = MutationHook<any>> = | ||
ReturnType<H['useHook']>; | ||
|
||
const useRegister_c2s: UseGetAccountinfo = () => { | ||
const hook = useHook((hooks) => hooks.c2s.useGetAccountInfo); | ||
return useMutationHook({ ...hook })(); | ||
}; | ||
|
||
export default useRegister_c2s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Layout } from '@components/common/Layout'; | ||
import React from 'react'; | ||
import Chat from '@components/chat'; | ||
import { useRouter } from 'next/router'; | ||
import { useAppSelector } from 'framework/redux/store'; | ||
|
||
export default function SpecificServer({ connErr }: { connErr: string }) { | ||
const router = useRouter(); | ||
const serverCid = router.query.server; | ||
// console.log(router.asPath); | ||
|
||
// const current_used_session_server = useAppSelector( | ||
// (state) => state.context.sessions.current_used_session_server | ||
// ); | ||
|
||
return ( | ||
<> | ||
<div className="flex flex-col justify-between"> | ||
<main className="pt-10 h-full w-full flex flex-col justify-between text-white"> | ||
<Chat /> | ||
</main> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
SpecificServer.Layout = Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters