Skip to content

Commit

Permalink
Minor organizing
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsabil83 committed Feb 28, 2024
1 parent d97e91f commit c05df75
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ const defaultOptions = {
compile({
...defaultOptions,
entryPoints: ['./resources/js/components/hijri-date-time-picker.js'],
outfile: './resources/dist/js/hijri-date-time-picker.js',
outfile: './dist/js/components/hijri-date-time-picker.js',
})
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
ax-load
@endif
ax-load-src="{{ \Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('filament-hijri-picker', 'mohamedsabil83/filament-hijri-picker') }}"
x-data="dateTimePickerFormComponent({
x-data="hijriDateTimePickerFormComponent({
displayFormat: '{{ convert_date_format($getDisplayFormat())->to('day.js') }}',
firstDayOfWeek: {{ $getFirstDayOfWeek() }},
isAutofocused: @js($isAutofocused()),
Expand Down
2 changes: 1 addition & 1 deletion src/FilamentHijriPickerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function configurePackage(Package $package): void
public function packageBooted(): void
{
FilamentAsset::register([
AlpineComponent::make('filament-hijri-picker', __DIR__.'/../resources/dist/js/hijri-date-time-picker.js'),
AlpineComponent::make('filament-hijri-picker', __DIR__.'/../dist/js/components/hijri-date-time-picker.js'),
], package: 'mohamedsabil83/filament-hijri-picker');
}
}

0 comments on commit c05df75

Please sign in to comment.