diff --git a/packages/flat-components/src/components/SettingPage/AppearancePicker/ThemePicker.stories.tsx b/packages/flat-components/src/components/SettingPage/AppearancePicker/ThemePicker.stories.tsx index fcd7954a453..b302ee65e9c 100644 --- a/packages/flat-components/src/components/SettingPage/AppearancePicker/ThemePicker.stories.tsx +++ b/packages/flat-components/src/components/SettingPage/AppearancePicker/ThemePicker.stories.tsx @@ -18,5 +18,5 @@ export const Overview: Story = args => ( ); Overview.args = { - defaultValue: "light", + value: "light", }; diff --git a/packages/flat-pages/src/ReplayPage/index.tsx b/packages/flat-pages/src/ReplayPage/index.tsx index f22e2404c1f..c97b7a75770 100644 --- a/packages/flat-pages/src/ReplayPage/index.tsx +++ b/packages/flat-pages/src/ReplayPage/index.tsx @@ -15,6 +15,7 @@ import { useLoginCheck } from "../utils/use-login-check"; import { ReplayList } from "./ReplayList"; import { ReplayVideo } from "./ReplayVideo"; import { ReplayWhiteboard } from "./ReplayWhiteboard"; +import { withFlatServices } from "../components/FlatServicesContext"; export type ReplayPageProps = RouteComponentProps<{ roomUUID: string; @@ -22,50 +23,52 @@ export type ReplayPageProps = RouteComponentProps<{ roomType: RoomType; }>; -export const ReplayPage = observer(function ReplayPage({ match }) { - useLoginCheck(); +export const ReplayPage = withFlatServices("whiteboard")( + observer(function ReplayPage({ match }) { + useLoginCheck(); - const history = useHistory(); - const classroomReplayStore = useClassroomReplayStore(match.params); - const [showExitReplayModal, setShowExitReplayModal] = useState(false); + const history = useHistory(); + const classroomReplayStore = useClassroomReplayStore(match.params); + const [showExitReplayModal, setShowExitReplayModal] = useState(false); - const windowsBtn = useContext(WindowsSystemBtnContext); + const windowsBtn = useContext(WindowsSystemBtnContext); - if (!classroomReplayStore) { - return ; - } + if (!classroomReplayStore) { + return ; + } - return ( -
- {windowsBtn && ( - - )} -
- -
-
- -
{/* TODO */}
-
- + return ( +
+ {windowsBtn && ( + + )} +
+
+
+ +
{/* TODO */}
+
+ +
+
+ setShowExitReplayModal(false)} + onConfirm={() => history.goBack()} + onSendWindowWillClose={() => setShowExitReplayModal(true)} + />
- setShowExitReplayModal(false)} - onConfirm={() => history.goBack()} - onSendWindowWillClose={() => setShowExitReplayModal(true)} - /> -
- ); -}); + ); + }), +); export default ReplayPage;