Fix code style
This commit is contained in:
parent
bf2b6fc01a
commit
e1501a26f3
1 changed files with 10 additions and 14 deletions
|
@ -45,21 +45,17 @@ module Widgets
|
||||||
def render_public_key
|
def render_public_key
|
||||||
Curses::React::Nodes.create(
|
Curses::React::Nodes.create(
|
||||||
create_element(:line) do
|
create_element(:line) do
|
||||||
create_element(
|
create_element :text_line,
|
||||||
:text_line,
|
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 1,
|
y: 1,
|
||||||
width: PUBLIC_KEY_LABEL.length,
|
width: PUBLIC_KEY_LABEL.length,
|
||||||
text: PUBLIC_KEY_LABEL,
|
text: PUBLIC_KEY_LABEL
|
||||||
)
|
|
||||||
|
|
||||||
create_element(
|
create_element :text_line,
|
||||||
:text_line,
|
|
||||||
x: PUBLIC_KEY_LABEL.length,
|
x: PUBLIC_KEY_LABEL.length,
|
||||||
y: 1,
|
y: 1,
|
||||||
width: props[:width] - PUBLIC_KEY_LABEL.length,
|
width: props[:width] - PUBLIC_KEY_LABEL.length,
|
||||||
text: props[:public_key],
|
text: props[:public_key]
|
||||||
)
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
window,
|
window,
|
||||||
|
|
Reference in a new issue