Skip to content

Commit

Permalink
fix: fix signup form not working (monicahq/chandler#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss authored Sep 14, 2022
1 parent 4b32260 commit d291bbe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/jetstream.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
*/

'features' => [
Features::termsAndPrivacyPolicy(),
//Features::termsAndPrivacyPolicy(),
// Features::profilePhotos(),
Features::api(),
//Features::teams(['invitations' => true]),
Expand Down
17 changes: 8 additions & 9 deletions resources/js/Pages/Auth/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<div>
<breeze-validation-errors class="mb-4" />

<p class="mb-2 text-lg font-bold">Sign up for an account</p>
<p class="mb-8 text-sm text-gray-500">Your name here will be used to add yourself as a contact.</p>

<form @submit.prevent="submit">
<div>
<breeze-label for="first_name" value="First name" />
Expand Down Expand Up @@ -48,7 +51,7 @@
autocomplete="new-password" />
</div>

<div class="mt-4">
<div class="mt-4 mb-8">
<breeze-label for="password_confirmation" value="Confirm Password" />
<breeze-input
id="password_confirmation"
Expand All @@ -60,33 +63,29 @@
</div>

<div class="mt-4 flex items-center justify-end">
<inertia-link
:href="route('login')"
class="text-sm text-gray-600 underline hover:text-gray-900 dark:text-gray-400">
<inertia-link :href="route('login')" class="mr-4 text-sm text-blue-500 hover:underline dark:text-gray-400">
Already registered?
</inertia-link>

<breeze-button class="ml-4" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
Register
</breeze-button>
<PrettyButton :text="'Register'" :state="loadingState" :classes="'save'" />
</div>
</form>
</div>
</template>

<script>
import BreezeButton from '@/Components/Button.vue';
import BreezeGuestLayout from '@/Shared/Guest.vue';
import BreezeInput from '@/Components/Input.vue';
import BreezeLabel from '@/Components/Label.vue';
import BreezeValidationErrors from '@/Components/ValidationErrors.vue';
import PrettyButton from '@/Shared/Form/PrettyButton.vue';
export default {
components: {
BreezeButton,
BreezeInput,
BreezeLabel,
BreezeValidationErrors,
PrettyButton,
},
layout: BreezeGuestLayout,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Vault/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p class="mb-3">
{{ $t('vault.index_blank_sentence_2') }}
</p>
<div class="text-center">
<div class="mb-4 text-center">
<pretty-link :href="data.url.vault.create" :text="$t('vault.index_cta')" :icon="'plus'" />
</div>
</div>
Expand Down

0 comments on commit d291bbe

Please sign in to comment.