import {React, Settings, Strings} from "modules"; import SettingsTitle from "./title"; import PluginCard from "./plugincard"; import ThemeCard from "./themecard"; import ReloadIcon from "../icons/reload"; export default class AddonList extends React.Component { reload() { if (this.props.refreshList) this.props.refreshList(); this.forceUpdate(); } render() { const {title, folder, addonList, addonState, onChange, reload} = this.props; const showReloadIcon = !Settings.get("settings", "addons", "autoReload"); const button = folder ? {title: Strings.Addons.openFolder.format({type: title}), onClick: () => {require("electron").shell.openItem(folder);}} : null; return [ } />, ]; } }