mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-23 07:59:52 +01:00
add restore functionality
This commit is contained in:
@@ -73,6 +73,10 @@ const Home = () => {
|
||||
return characters;
|
||||
};
|
||||
|
||||
const restoreCharacters = (characters: AccessToken[]) => {
|
||||
refreshSession(characters).then(saveCharacters).then(setCharacters);
|
||||
};
|
||||
|
||||
// Initialize EVE PI
|
||||
useEffect(() => {
|
||||
fetch("api/env")
|
||||
@@ -106,6 +110,7 @@ const Home = () => {
|
||||
characters,
|
||||
deleteCharacter,
|
||||
updateCharacter,
|
||||
restoreCharacters,
|
||||
}}
|
||||
>
|
||||
<MainGrid sessionReady={sessionReady} />
|
||||
|
||||
Reference in New Issue
Block a user