diff --git a/src/Panel.tsx b/src/Panel.tsx index ce382a6a..038dec86 100644 --- a/src/Panel.tsx +++ b/src/Panel.tsx @@ -11,6 +11,7 @@ import { IS_OUTDATED, LOCAL_BUILD_PROGRESS, PANEL_ID, + REMOVE_ADDON, START_BUILD, } from "./constants"; import { Project } from "./gql/graphql"; @@ -61,12 +62,12 @@ export const Panel = ({ active, api }: PanelProps) => { // If the user creates a project in a dialog (either during login or later, it get set here) const [createdProjectId, setCreatedProjectId] = useState(); - const [addonUninstalled, setAddonUninstalled] = useState(false); + const [addonUninstalled, setAddonUninstalled] = useSharedState(REMOVE_ADDON); if (addonUninstalled) { return ( - + @@ -80,7 +81,7 @@ export const Panel = ({ active, api }: PanelProps) => { console.error(gitInfoError); return ( - + @@ -93,7 +94,7 @@ export const Panel = ({ active, api }: PanelProps) => { if (!accessToken) { return ( - +