From 2f291847b08440c6da63351a0cfec482682170ae Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 24 Jan 2022 14:39:27 -0300
Subject: fixing import to anastasis-core

---
 .../src/pages/home/BackupFinishedScreen.tsx              | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

(limited to 'packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx')

diff --git a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx
index 129f1e9e4..66473345f 100644
--- a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx
@@ -1,4 +1,4 @@
-import { AuthenticationProviderStatusOk } from "anastasis-core";
+import { AuthenticationProviderStatusOk } from "@gnu-taler/anastasis-core";
 import { format } from "date-fns";
 import { h, VNode } from "preact";
 import { useAnastasisContext } from "../../context/anastasis";
@@ -16,7 +16,7 @@ export function BackupFinishedScreen(): VNode {
     return <div>invalid state</div>;
   }
   const details = reducer.currentReducerState.success_details;
-  const providers = reducer.currentReducerState.authentication_providers ?? {}
+  const providers = reducer.currentReducerState.authentication_providers ?? {};
 
   return (
     <AnastasisClientFrame hideNav title="Backup success!">
@@ -27,17 +27,19 @@ export function BackupFinishedScreen(): VNode {
           <p>The backup is stored by the following providers:</p>
           {Object.keys(details).map((url, i) => {
             const sd = details[url];
-            const p = providers[url] as AuthenticationProviderStatusOk
+            const p = providers[url] as AuthenticationProviderStatusOk;
             return (
               <div key={i} class="box">
-                <a href={url} target="_blank" rel="noreferrer">{p.business_name}</a>
+                <a href={url} target="_blank" rel="noreferrer">
+                  {p.business_name}
+                </a>
                 <p>
                   version {sd.policy_version}
                   {sd.policy_expiration.t_ms !== "never"
                     ? ` expires at: ${format(
-                      new Date(sd.policy_expiration.t_ms),
-                      "dd-MM-yyyy",
-                    )}`
+                        new Date(sd.policy_expiration.t_ms),
+                        "dd-MM-yyyy",
+                      )}`
                     : " without expiration date"}
                 </p>
               </div>
-- 
cgit v1.2.3

