diff --git a/pkg/interface/src/components/GroupFilter.js b/pkg/interface/src/components/GroupFilter.js index d4a95eec2..1b64db8d1 100644 --- a/pkg/interface/src/components/GroupFilter.js +++ b/pkg/interface/src/components/GroupFilter.js @@ -1,4 +1,5 @@ import React, { Component } from 'react'; +import api from '../lib/api'; export default class GroupFilter extends Component { constructor(props) { @@ -24,7 +25,7 @@ export default class GroupFilter extends Component { const selected = localStorage.getItem('urbit-selectedGroups'); if (selected) { this.setState({ selected: JSON.parse(selected) }, (() => { - window.api.setSelected(this.state.selected); + api.setSelected(this.state.selected); })); } } @@ -197,7 +198,7 @@ onClick={() => this.addGroup(group)} 'f9 gray2 bb bl br b--gray3 b--gray2-d bg-gray0-d ' + 'white-d pa3 db w-100 inter bg-gray5 lh-solid tl' } -style={{ width: 251 }} + style={{ width: 251 }} > {allSelected} diff --git a/pkg/interface/src/components/StatusBar.js b/pkg/interface/src/components/StatusBar.js index 0d053ca81..fbb497396 100644 --- a/pkg/interface/src/components/StatusBar.js +++ b/pkg/interface/src/components/StatusBar.js @@ -2,7 +2,7 @@ import React from 'react'; import { useLocation, Link } from 'react-router-dom'; import GroupFilter from './GroupFilter'; -// import { Sigil } from "/components/lib/icons/sigil"; +import { Sigil } from '../lib/sigil'; const getLocationName = (basePath) => { if (basePath === '~chat') @@ -10,8 +10,6 @@ return 'Chat'; // if (path === '~chat') return 'Publish'; }; -const Sigil = () => (
); - const StatusBar = (props) => { const location = useLocation(); const basePath = location.pathname.split('/')[1]; @@ -33,10 +31,10 @@ const StatusBar = (props) => { } style={{ height: 45 }} > -