+ onClick={() => navigate(`/tactic/${tactic.id}/edit`)}>
+
t.id !== tactic.id),
+ type: HomePageStateActionKind.REMOVE_TACTIC,
+ tacticId: tactic.id,
})
}}
/>
+ {
+ e.stopPropagation()
+ const service = new APITacticService(
+ fetcher,
+ tactic.id,
+ )
+ const context = await service.getContext()
+ if (typeof context === "string")
+ throw Error(context)
-
+ const plainTactic = await loadPlainTactic(
+ context,
+ service,
+ )
+ const { name, id } = await importTactic(
+ fetcher,
+ plainTactic,
+ )
+ dispatch({
+ type: HomePageStateActionKind.ADD_TACTIC,
+ tactic: { name, id, creationDate: 0 },
+ })
+ }}
+ />
+