Skip to content

Commit

Permalink
[Bug] Fix asset registration in provider (#12)
Browse files Browse the repository at this point in the history
* Fix styles

* Fix styling

---------

Co-authored-by: Baspa <[email protected]>
  • Loading branch information
Baspa and Baspa authored Aug 23, 2024
1 parent 62cf857 commit f008a40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion resources/dist/filament-two-factor-auth.js
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
8 changes: 4 additions & 4 deletions src/TwoFactorAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected function registerContractsAndComponents(): void

protected function getAssetPackageName(): string
{
return 'vormkracht10/filament-two-factor-auth';
return 'vormkracht10/filament-2fa';
}

/**
Expand All @@ -225,9 +225,9 @@ protected function getAssetPackageName(): string
protected function getAssets(): array
{
return [
// AlpineComponent::make('filament-two-factor-auth', __DIR__ . '/../resources/dist/components/filament-two-factor-auth.js'),
Css::make('filament-two-factor-auth-styles', __DIR__ . '/../resources/dist/filament-two-factor-auth.css'),
Js::make('filament-two-factor-auth-scripts', __DIR__ . '/../resources/dist/filament-two-factor-auth.js'),
// AlpineComponent::make('filament-2fa', __DIR__ . '/../resources/dist/components/filament-2fa.js'),
Css::make('filament-2fa-styles', __DIR__ . '/../resources/dist/filament-two-factor-auth.css'),
Js::make('filament-2fa-scripts', __DIR__ . '/../resources/dist/filament-two-factor-auth.js'),
];
}

Expand Down

0 comments on commit f008a40

Please sign in to comment.