Skip to content

Commit

Permalink
Merge & fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
lguichard committed Jan 31, 2024
1 parent c13a3d6 commit fb91ab4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Lunar\Admin\Filament\Resources\AttributeGroupResource\Pages;
use Lunar\Admin\Filament\Resources\AttributeGroupResource\RelationManagers;
use Lunar\Admin\Support\Resources\BaseResource;
use Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn;
use Lunar\Models\AttributeGroup;

class AttributeGroupResource extends BaseResource
Expand Down Expand Up @@ -103,7 +104,7 @@ public static function getDefaultTable(Table $table): Table
->columns([
Tables\Columns\TextColumn::make('attributable_type')
->label(__('lunarpanel::attributegroup.table.attributable_type.label')),
\Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn::make('name')
TranslatedTextColumn::make('name')
->label(__('lunarpanel::attributegroup.table.name.label')),
Tables\Columns\TextColumn::make('handle')
->label(__('lunarpanel::attributegroup.table.handle.label')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Illuminate\Support\Str;
use Illuminate\Validation\Rules\Unique;
use Lunar\Admin\Support\Facades\AttributeData;
use Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn;

class AttributesRelationManager extends RelationManager
{
Expand Down Expand Up @@ -101,7 +102,7 @@ public function table(Table $table): Table
{
return $table
->columns([
\Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn::make('name')->label(
TranslatedTextColumn::make('name')->label(
__('lunarpanel::attribute.table.name.label')
),
Tables\Columns\TextColumn::make('description.en')->label(
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/src/Filament/Resources/ProductResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use Lunar\Admin\Support\RelationManagers\ChannelRelationManager;
use Lunar\Admin\Support\RelationManagers\MediaRelationManager;
use Lunar\Admin\Support\Resources\BaseResource;
use \Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn;
use Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn;
use Lunar\Models\Currency;
use Lunar\Models\Product;
use Lunar\Models\ProductVariant;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Filament\Tables;
use Filament\Tables\Table;
use Lunar\Admin\Filament\Resources\ProductResource;
use Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn;
use Lunar\Models\Collection;

class ManageProductCollections extends ManageRelatedRecords
Expand All @@ -33,7 +34,7 @@ public function table(Table $table): Table
return $table
->recordTitleAttribute('name')
->columns([
\Lunar\Admin\Support\Tables\Columns\TranslatedTextColumn::make('attribute_data.name')
TranslatedTextColumn::make('attribute_data.name')
->attributeData()
->limitedTooltip()
->limit(50)
Expand Down

0 comments on commit fb91ab4

Please sign in to comment.