Skip to content

Commit

Permalink
Play Widget in WebApp removed
Browse files Browse the repository at this point in the history
  • Loading branch information
CHB committed Nov 5, 2024
1 parent f7e53b3 commit b40cb8d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions web-apps/urban-sun-safe/src/compontents/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { watch } from "@arcgis/core/core/reactiveUtils";
import Fullscreen from "@arcgis/core/widgets/Fullscreen";
import AppStore from "../stores/AppStore";
import Header from "./Header";
import Player from "./Player";
import { Widget } from "./Widget";

type AppProperties = Pick<App, "store">;
Expand All @@ -23,27 +22,6 @@ class App extends Widget<AppProperties> {
const view = this.store.view;
const fullscreen = new Fullscreen({ view });
view.ui.add(fullscreen, "top-right");

const player = new Player({
store: this.store.playerStore,
});

view.ui.add(player, "bottom-right");

this.addHandles(
watch(
() => this.store.playerStore.state,
(state) => {
if (state === "animating") {
player.visible = false;
fullscreen.visible = false;
} else if (state === "ready") {
player.visible = true;
fullscreen.visible = true;
}
}
)
);
}

render() {
Expand Down

0 comments on commit b40cb8d

Please sign in to comment.