Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed May 22, 2024
1 parent 4d1a1b4 commit 890c5c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Components/InstagramComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ class InstagramComponent extends CachedComponent implements Scheduled

public function __construct(
public string $account,
public Collection $posts,
public int $limit = 12,
) {
}

public function render()
{
$this->posts = $this->getMediaFromInstagram();
$posts = $this->getMediaFromInstagram();

return view('instagram-component::components.instagram');
return view('instagram-component::components.instagram', compact('posts'));
}

public function getApiClient(): Api
Expand Down

0 comments on commit 890c5c2

Please sign in to comment.