Skip to content

Commit

Permalink
0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Jul 16, 2024
1 parent 7d87fc7 commit 6256a9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions imports/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ export const Level = memo(function Level({
<SimpleGrid columns={3}>
<Button
ref={active?.[2] === 'from' ? ref : undefined}
variant={!link?.['from_id'] ? 'disabled' : active?.[2] === 'from' ? 'active' : undefined} textAlign='left'
variant={!link?.['from_id'] ? 'disabled' : active?.[2] === 'from' ? 'active' : undefined} justifyContent='right'
onClick={() => jump('from')}
disabled={!link?.from_id}
>
<Text pr={1}></Text> from
from <Text pl={1}></Text>
</Button>
<Button
ref={active?.[2] === 'type' ? ref : undefined}
Expand All @@ -189,17 +189,17 @@ export const Level = memo(function Level({
</Button>
<Button
ref={active?.[2] === 'to' ? ref : undefined}
variant={!link?.['to_id'] ? 'disabled' : active?.[2] === 'to' ? 'active' : undefined} textAlign='right'
variant={!link?.['to_id'] ? 'disabled' : active?.[2] === 'to' ? 'active' : undefined} justifyContent='left'
onClick={() => jump('to')}
disabled={!link?.to_id}
>
to <Text pl={1}>{'>'}</Text>
<Text pr={1}>{'>'}</Text> to
</Button>
</SimpleGrid>
<SimpleGrid columns={3}>
<Button
ref={active?.[2] === 'out' ? ref : undefined}
variant={active?.[2] === 'out' ? 'active' : undefined} textAlign='left'
variant={active?.[2] === 'out' ? 'active' : undefined} justifyContent='left'
onClick={() => jump('out')}
>
<Text rotate='180deg' pr={1}></Text> out
Expand All @@ -213,23 +213,23 @@ export const Level = memo(function Level({
</Button>
<Button
ref={active?.[2] === 'in' ? ref : undefined}
variant={active?.[2] === 'in' ? 'active' : undefined} textAlign='right'
variant={active?.[2] === 'in' ? 'active' : undefined} justifyContent='right'
onClick={() => jump('in')}
>
<Text pr={1}></Text> in
in <Text pl={1}></Text>
</Button>
</SimpleGrid>
<SimpleGrid columns={2}>
<Button
ref={active?.[2] === 'up' ? ref : undefined}
variant={active?.[2] === 'up' ? 'active' : undefined} textAlign='left'
variant={active?.[2] === 'up' ? 'active' : undefined} justifyContent='center'
onClick={() => jump('up')}
>
<Text pr={1}></Text> up
</Button>
<Button
ref={active?.[2] === 'down' ? ref : undefined}
variant={active?.[2] === 'down' ? 'active' : undefined} textAlign='right'
variant={active?.[2] === 'down' ? 'active' : undefined} justifyContent='center'
onClick={() => jump('down')}
>
<Text pr={1}></Text> down
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/perception-app",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"license": "Unlicense",
"main": "./bin/server.js",
Expand Down

0 comments on commit 6256a9c

Please sign in to comment.