diff --git a/README.md b/README.md index b1c462759..b27602906 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,8 @@ The component speaks every language the app does. English is bundled in; the other locales are split into chunks the host's bundler loads the first time they are needed. It starts in the browser's language, and follows the host's own language setting through the `language` prop (`supportedLanguages` lists -the tags it accepts). +the tags it accepts). The `theme` prop works the same way for `light` and +`dark`; both can change while a call is running without disturbing it. The package is not published yet. A host installs it as a git dependency on the `component` directory of this repository, diff --git a/component/dev/Harness.tsx b/component/dev/Harness.tsx index 9e40e2c7a..ded9155a9 100644 --- a/component/dev/Harness.tsx +++ b/component/dev/Harness.tsx @@ -94,9 +94,10 @@ interface LogEntry { const Pane: FC<{ session: Session; roomId: string; + theme: string | undefined; language: string | undefined; log: (pane: string, message: string) => void; -}> = ({ session, roomId, language, log }): ReactNode => { +}> = ({ session, roomId, theme, language, log }): ReactNode => { const [mounted, setMounted] = useState(true); const bridge = useMemo( @@ -139,20 +140,6 @@ const Pane: FC<{ - - +