Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
refactor: UI tweaks and publisher for images (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Highjhacker authored Nov 19, 2020
1 parent 16687dd commit 40a0217
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions resources/lang/en/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
'done' => 'Done',
'confirm_logout' => 'Logout Other Browser Sessions',
'cancel' => 'Cancel',
'delete' => 'Delete',
];
8 changes: 4 additions & 4 deletions resources/views/profile/delete-user-form.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div>
<div class="flex flex-col px-8 lg:p-8 xl:mx-8">
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.delete_account_title')</span>
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.delete_account_title')</span>
<span>
@lang('fortify::pages.delete_account_description')
@lang('fortify::pages.user-settings.delete_account_description')
</span>

<div class="flex flex-row justify-end mt-8">
Expand Down Expand Up @@ -34,10 +34,10 @@
<x-slot name="buttons">
<div class="flex flex-col w-full sm:flex-row justify-end mt-5 space-y-4 sm:space-y-0 sm:space-x-3">
<button class="button-secondary"
wire:click="$toggle('confirmingUserDeletion')">@lang('actions.cancel')</button>
wire:click="$toggle('confirmingUserDeletion')">@lang('fortify::actions.cancel')</button>
<button class="inline-flex justify-center items-center button-primary" wire:click="destroy">
@svg('trash', 'h-4 w-4')
<span class="ml-2">@lang('actions.delete')</span>
<span class="ml-2">@lang('fortify::actions.delete')</span>
</button>
</div>
</x-slot>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/profile/export-user-data.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<div class="flex flex-col px-8 lg:p-8 xl:mx-8">
<div class="flex flex-col">
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.gdpr_title')</span>
<span>@lang('fortify::pages.user-settings.gdpr_description')</span>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/profile/update-timezone-form.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<div class="flex flex-col px-8 lg:p-8 xl:mx-8">
<div class="flex flex-col">
<span class="text-2xl font-semibold text-theme-secondary-900">@lang('fortify::pages.user-settings.update_timezone_title')</span>
<span>@lang('fortify::pages.user-settings.update_timezone_description')</span>
<div>
Expand Down
4 changes: 4 additions & 0 deletions src/FortifyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public function registerPublishers(): void
__DIR__.'/../resources/views/components' => resource_path('views/components'),
__DIR__.'/../resources/views/profile' => resource_path('views/profile'),
], 'views');

$this->publishes([
__DIR__.'/../resources/images' => resource_path('images'),
], 'images');
}

/**
Expand Down

0 comments on commit 40a0217

Please sign in to comment.