| @@ -1,13 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace FluentCart\App\Hooks\Handlers\BlockEditors; |
| 4 | 4 | |
| 5 | - | |
| 5 | +use FluentCart\App\Helpers\Helper; | |
| 6 | 6 | use FluentCart\App\Models\Product; |
| 7 | 7 | use FluentCart\App\Services\Renderer\ProductRenderer; |
| 8 | 8 | use FluentCart\App\Services\Translations\TransStrings; |
| 9 | -use FluentCart\App\Vite; | |
| 10 | 9 | use FluentCart\Framework\Support\Arr; |
| 11 | 10 | |
| 12 | 11 | class StockBlock extends BlockEditor |
| 13 | 12 | { |
| @@ -55,9 +54,9 @@ | ||
| 55 | 54 | 'slug' => $this->slugPrefix, |
| 56 | 55 | 'name' => static::getEditorName(), |
| 57 | 56 | 'title' => __('Stock', 'fluent-cart'), |
| 58 | 57 | 'description' => __('This block will display the stock.', 'fluent-cart'), |
| 59 | - 'placeholder_image' => Vite::getAssetUrl('images/placeholder.svg'), | |
| 58 | + 'placeholder_image' => Helper::getProductPlaceholderUrl(), | |
| 60 | 59 | 'supports' => $this->supports() |
| 61 | 60 | ], |
| 62 | 61 | 'fluent_cart_block_translation' => TransStrings::blockStrings(), |
| 63 | 62 | ]; |