Skip to content

Commit 438a07c

Browse files
committed
Input includes logic for Col, no need to nest it
1 parent 9dd49b7 commit 438a07c

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

client/skr/components/address/Address.cjsx

+8-24
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,19 @@ class Skr.Components.Address extends Lanes.React.Component
3030
<BS.Col {...colProps}>
3131
{@renderTitle() if @props.title}
3232
<BS.Row>
33-
<BS.Col xs=12>
34-
<LC.Input name="name" model={@model} />
35-
</BS.Col>
33+
<LC.Input name="name" model={@model} xs=12 />
3634
</BS.Row>
3735
<BS.Row>
38-
<BS.Col sm=6>
39-
<LC.Input name="phone" model={@model} />
40-
</BS.Col>
41-
<BS.Col sm=6>
42-
<LC.Input name="email" model={@model} />
43-
</BS.Col>
36+
<LC.Input name="phone" model={@model} sm=6 />
37+
<LC.Input name="email" model={@model} sm=6 />
4438
</BS.Row>
4539
<BS.Row>
46-
<BS.Col md=6>
47-
<LC.Input name="line1" model={@model} />
48-
</BS.Col>
49-
<BS.Col md=6>
50-
<LC.Input name="line2" model={@model} />
51-
</BS.Col>
40+
<LC.Input name="line1" model={@model} md=6 />
41+
<LC.Input name="line2" model={@model} md=6 />
5242
</BS.Row>
5343
<BS.Row>
54-
<BS.Col md=7>
55-
<LC.Input name="city" model={@model} />
56-
</BS.Col>
57-
<BS.Col xs=8 md=3>
58-
<LC.Input name="state" model={@model} />
59-
</BS.Col>
60-
<BS.Col xs=4 md=2>
61-
<LC.Input name="postal_code" model={@model} />
62-
</BS.Col>
44+
<LC.Input name="city" model={@model} md=7 />
45+
<LC.Input name="state" model={@model} xs=8 md=3 />
46+
<LC.Input name="postal_code" model={@model} xs=4 md=2 />
6347
</BS.Row>
6448
</BS.Col>

0 commit comments

Comments
 (0)