This commit is contained in:
David Mihal 2019-10-31 07:29:32 -07:00
parent 3686f1effb
commit 745191f092
3 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
},
"scripts": {
"start": "react-scripts start",
"waterloo-start-basic": "react-scripts start",
"start-basic": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"

View File

@ -1,4 +1,4 @@
import { BurnerPluginContext, Plugin } from '@burner-wallet/types';
import { BurnerPluginContext, Plugin, Actions } from '@burner-wallet/types';
import MyPage from './ui/MyPage';
import MyElement from './ui/MyElement';
@ -7,7 +7,7 @@ interface PluginActionContext {
}
export default class MyPlugin implements Plugin {
private pluginContext: BurnerPluginContext;
private pluginContext?: BurnerPluginContext;
initializePlugin(pluginContext: BurnerPluginContext) {
this.pluginContext = pluginContext;

View File

@ -1,8 +1,8 @@
import React, { useEffect, useState } from 'react';
import { BurnerContext } from '@burner-wallet/types';
import { PluginElementContext } from '@burner-wallet/types';
import MyPlugin from '../MyPlugin';
const MyElement: React.FC<BurnerContext> = ({ plugin }) => {
const MyElement: React.FC<PluginElementContext> = ({ plugin }) => {
const [block, setBlock] = useState<string | null>(null);
const _plugin = plugin as MyPlugin;