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