Skip to content

Commit

Permalink
Display the "InstallationFinished" again
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Oct 27, 2023
1 parent ff4fc26 commit 1cfb030
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions web/src/components/core/Installation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,11 @@
* find current contact information at www.suse.com.
*/

import React, { useEffect, useState } from "react";
import { useInstallerClient } from "~/context/installer";
import React from "react";
import { InstallationProgress, InstallationFinished } from "~/components/core";
import { IDLE } from "~/client/status";

function Installation() {
const client = useInstallerClient();
const [status, setStatus] = useState(undefined);

useEffect(() =>
client.manager.onStatusChange(setStatus), [client.manager]
);

function Installation({ status }) {
return (status === IDLE) ? <InstallationFinished /> : <InstallationProgress />;
}

Expand Down

0 comments on commit 1cfb030

Please sign in to comment.