Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v3' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed May 19, 2023
2 parents 7c92478 + 41a1934 commit 3bca087
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
26 changes: 13 additions & 13 deletions src/Actions/GoToAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ protected function setUp(): void

$this->icon('heroicon-s-map');

// $this->extraAttributes(function (Model $record) {
// $latLngFields = $record::getLatLngAttributes();
//
// return [
// 'x-on:click' => new HtmlString(
// sprintf("\$dispatch('setmapcenter', {lat: %f, lng: %f, zoom: %d})",
// round(floatval($record->{$latLngFields['lat']}), 8),
// round(floatval($record->{$latLngFields['lng']}), 8),
// $this->getZoom()
// )
// ),
// ];
// });
// $this->extraAttributes(function (Model $record) {
// $latLngFields = $record::getLatLngAttributes();
//
// return [
// 'x-on:click' => new HtmlString(
// sprintf("\$dispatch('setmapcenter', {lat: %f, lng: %f, zoom: %d})",
// round(floatval($record->{$latLngFields['lat']}), 8),
// round(floatval($record->{$latLngFields['lng']}), 8),
// $this->getZoom()
// )
// ),
// ];
// });
}

public function getLivewireMountAction(): ?string
Expand Down
1 change: 0 additions & 1 deletion tests/src/Fields/FieldsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Cheesegrits\FilamentGoogleMaps\Tests\Fields\Fixtures\Resources\LocationResource;
use Filament\FilamentServiceProvider;
use Filament\PluginServiceProvider;

//use Filament\Tests\Admin\Fixtures\Resources\UserResource;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables\Table;
use Filament\Tables;
use Filament\Tables\Table;

class GeocompleteResource extends Resource
{
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Fields/Fixtures/Resources/LocationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables\Table;
use Filament\Tables;
use Filament\Tables\Table;

class LocationResource extends Resource
{
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Fields/Fixtures/Resources/MapResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables\Table;
use Filament\Tables;
use Filament\Tables\Table;

class MapResource extends Resource
{
Expand Down

0 comments on commit 3bca087

Please sign in to comment.