Commit 856838ba authored by joseph izang's avatar joseph izang

add button component. tsconfig for json imports

parent 81e1ebe7
import React, { useState } from 'react'
interface ButtonProps {
profileName: string
deactivatePlugin?: (name: string) => {}
activatePlugin?: (name: string) => {}
buttonText?: string
}
function Button ({ profileName, deactivatePlugin, buttonText }: ButtonProps) {
const [isActive, toggleIsActive] = useState(false)
const dataId = `pluginManagerComponentDeactivateButton${profileName}`
return (
<button
onClick={() => deactivatePlugin(profileName)}
className="btn btn-secondary btn-sm"
data-id={dataId}
>
{buttonText}
</button>
)
}
import React from 'react';
import React from 'react'
import * as packageJson from '../../../../../package.json'
import './remix-ui-plugin-manager.css';
/* eslint-disable-next-line */
export interface RemixUiPluginManagerProps {}
export interface RemixUiPluginManagerProps {
name: 'pluginManager',
displayName: 'Plugin manager',
methods: [],
events: [],
icon: 'assets/img/pluginManager.webp',
description: 'Start/stop services, modules and plugins',
kind: 'settings',
location: 'sidePanel',
documentation: 'https://remix-ide.readthedocs.io/en/latest/plugin_manager.html',
version: packageJson.version
}
export const RemixUiPluginManager = (props: RemixUiPluginManagerProps) => {
return (
......
......@@ -4,7 +4,8 @@
"jsx": "react",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"files": [],
"include": [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment