Skip to content

Commit

Permalink
fix: vercel can't detect render return string
Browse files Browse the repository at this point in the history
  • Loading branch information
sensasi-delight committed Jun 30, 2024
1 parent 5fe1425 commit 3fad122
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Components/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace MaterialBlade\Components;

use Illuminate\Support\Facades\View;
use Illuminate\View\Component;
use Illuminate\View\ComponentAttributeBag;

Expand Down Expand Up @@ -78,10 +79,10 @@ private function validatePaddingProp()
public function render()
{
if ($this->isContainer) {
return 'mbv::grid.container';
return View::make('mbv::grid.container');
}

return 'mbv::grid.item';
return View::make('mbv::grid.item');
}

public function attributesPreprocess(ComponentAttributeBag $attributes)
Expand Down

0 comments on commit 3fad122

Please sign in to comment.