mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: move state inspector toggle button
This commit is contained in:
parent
453f3b76d9
commit
35c5d89a08
1 changed files with 4 additions and 4 deletions
|
|
@ -29,6 +29,9 @@ export const InspectorContextWrapper = IN_PRODUCTION_MODE
|
|||
flexDirection: 'column',
|
||||
}}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'flex-end' }}>
|
||||
<button onClick={() => setShow(false)}>❌</button>
|
||||
</div>
|
||||
<pre
|
||||
style={{
|
||||
flex: 1,
|
||||
|
|
@ -37,15 +40,12 @@ export const InspectorContextWrapper = IN_PRODUCTION_MODE
|
|||
>
|
||||
{JSON.stringify($.value, null, 2)}
|
||||
</pre>
|
||||
<div>
|
||||
<button onClick={() => setShow(false)}>❌</button>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div
|
||||
style={{
|
||||
position: 'fixed',
|
||||
bottom: '0',
|
||||
top: '0',
|
||||
right: '0',
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue