Skip to content

Commit

Permalink
Rename ShipComponent to ShipFormComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz authored and GSadee committed May 13, 2024
1 parent 7e52dfa commit e435ebf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ twig_hooks:

'sylius_admin.order.show.content.sections.shipments.item.actions':
ship:
component: 'sylius_admin:shipment:ship'
component: 'sylius_admin:shipment:ship_form'
props:
shipment: '@=_context.shipment'
resend_confirmation:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,15 @@
</service>

<service
id="sylius_admin.twig.component.shipment.ship"
class="Sylius\Bundle\AdminBundle\Twig\Component\Shipment\ShipComponent"
id="sylius_admin.twig.component.shipment.ship_form"
class="Sylius\Bundle\AdminBundle\Twig\Component\Shipment\ShipFormComponent"
>
<argument type="service" id="form.factory" />
<argument>Sylius\Bundle\ShippingBundle\Form\Type\ShipmentShipType</argument>

<tag
name="sylius.live_component"
key="sylius_admin:shipment:ship"
key="sylius_admin:shipment:ship_form"
template="@SyliusAdmin/shipment/component/ship.html.twig"
/>
</service>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Symfony\UX\LiveComponent\DefaultActionTrait;

#[AsLiveComponent]
class ShipComponent
class ShipFormComponent
{
use DefaultActionTrait;
use HookableLiveComponentTrait;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="dropdown-item">
{{ component('sylius_admin:shipment:ship', { shipment: data }) }}
{{ component('sylius_admin:shipment:ship_form', { shipment: data }) }}
</div>

0 comments on commit e435ebf

Please sign in to comment.