mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
interface: indigo-react statusbar icons
This commit is contained in:
parent
1e86da80fb
commit
5b9dc1e46a
@ -10,7 +10,6 @@ import { Sigil } from '~/logic/lib/sigil';
|
||||
const StatusBar = (props) => {
|
||||
|
||||
const location = useLocation();
|
||||
const atHome = Boolean(location.pathname === '/');
|
||||
|
||||
const display = (!window.location.href.includes('popout/'))
|
||||
? 'grid' : 'none';
|
||||
@ -33,17 +32,10 @@ const StatusBar = (props) => {
|
||||
>
|
||||
<Row collapse>
|
||||
<StatusBarItem mr={2} onClick={() => props.history.push('/')}>
|
||||
<img
|
||||
className='invert-d'
|
||||
src='/~landscape/img/icon-home.png'
|
||||
height='11'
|
||||
width='11'
|
||||
/>
|
||||
<Icon icon='Home' color='transparent' stroke='black' />
|
||||
</StatusBarItem>
|
||||
<StatusBarItem mr={2} onClick={() => props.api.local.setOmnibox()}>
|
||||
<Text display='inline-block' style={{ transform: 'rotate(180deg)' }}>
|
||||
↩
|
||||
</Text>
|
||||
<Icon icon='LeapArrow'/>
|
||||
<Text ml={2} color='black'>
|
||||
Leap
|
||||
</Text>
|
||||
@ -54,12 +46,7 @@ const StatusBar = (props) => {
|
||||
<StatusBarItem
|
||||
onClick={() => props.history.push('/~groups')}
|
||||
badge={Object.keys(invites).length > 0}>
|
||||
<img
|
||||
className='invert-d v-mid'
|
||||
src='/~landscape/img/groups.png'
|
||||
height='15'
|
||||
width='15'
|
||||
/>
|
||||
<Icon icon='Groups' color='transparent' stroke='black'/>
|
||||
<Text display={["none", "inline"]} ml={2}>Groups</Text>
|
||||
</StatusBarItem>
|
||||
<ReconnectButton
|
||||
|
@ -31,10 +31,8 @@ export function StatusBarItem({
|
||||
<Icon
|
||||
size="22px"
|
||||
icon="Bullet"
|
||||
fill="blue"
|
||||
position="absolute"
|
||||
top={"-10px"}
|
||||
right={"-12px"}
|
||||
color="blue"
|
||||
style={{ position: 'absolute', top: '-10', right: '-11' }}
|
||||
/>
|
||||
)}
|
||||
</Row>
|
||||
|
Loading…
Reference in New Issue
Block a user