Re-write voice context. Working towards #21

This commit is contained in:
Paul
2021-08-07 16:15:55 +01:00
parent 3bd6ab1388
commit 0e7e719308
7 changed files with 195 additions and 325 deletions

View File

@@ -6,7 +6,6 @@ import { Children } from "../types/Preact";
import Locale from "./Locale";
import Settings from "./Settings";
import Theme from "./Theme";
import Voice from "./Voice";
import Intermediate from "./intermediate/Intermediate";
import Client from "./revoltjs/RevoltClient";
@@ -18,9 +17,7 @@ export default function Context({ children }: { children: Children }) {
<Settings>
<Locale>
<Intermediate>
<Client>
<Voice>{children}</Voice>
</Client>
<Client>{children}</Client>
</Intermediate>
</Locale>
</Settings>