More generic layout setting
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
c69cc550ea
commit
972c947049
9 changed files with 65 additions and 46 deletions
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||
import { createContext } from "react";
|
||||
|
||||
import {IState} from "../components/structures/RoomView";
|
||||
import {Layout} from "../settings/Layout";
|
||||
|
||||
const RoomContext = createContext<IState>({
|
||||
roomLoading: true,
|
||||
|
@ -40,7 +41,7 @@ const RoomContext = createContext<IState>({
|
|||
statusBarVisible: false,
|
||||
canReact: false,
|
||||
canReply: false,
|
||||
useIRCLayout: false,
|
||||
layout: Layout.Group,
|
||||
matrixClientIsReady: false,
|
||||
});
|
||||
RoomContext.displayName = "RoomContext";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue