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