Replaced Node.content with Node.heading
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import gleam/dict
|
||||
import gleam/io
|
||||
import gleam/option.{Some}
|
||||
import gleam/string
|
||||
import gleeunit
|
||||
import gleeunit/should
|
||||
@@ -17,7 +18,7 @@ pub fn percent_layout_test() {
|
||||
#(
|
||||
Section("Row1"),
|
||||
layout.Row(
|
||||
content: "row 1",
|
||||
heading: Some("row 1"),
|
||||
style: Style(dimensions: Percent(width: 100, height: 50)),
|
||||
children: [
|
||||
Section("A"),
|
||||
@@ -28,21 +29,21 @@ pub fn percent_layout_test() {
|
||||
#(
|
||||
Section("A"),
|
||||
layout.Cell(
|
||||
content: "cell 1",
|
||||
heading: Some("cell 1"),
|
||||
style: Style(dimensions: Percent(width: 50, height: 100)),
|
||||
),
|
||||
),
|
||||
#(
|
||||
Section("B"),
|
||||
layout.Cell(
|
||||
content: "cell 2",
|
||||
heading: Some("cell 2"),
|
||||
style: Style(dimensions: Percent(width: 50, height: 100)),
|
||||
),
|
||||
),
|
||||
#(
|
||||
Section("Row2"),
|
||||
layout.Row(
|
||||
content: "row 1",
|
||||
heading: Some("row 1"),
|
||||
style: Style(dimensions: Percent(width: 100, height: 50)),
|
||||
children: [],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user