Skip to content

Commit

Permalink
fix: use custom naiveui theme on error page
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Feb 28, 2024
1 parent 7a8fefe commit e6dbabb
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions error.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<template>
<div class="page justify-center items-center">
<n-result
:status="error.statusCode?.toString()"
:builtin-theme-overrides="{ titleFontSizeMedium: '24px' }"
:title="error.statusMessage || 'Oops, something went wrong'"
:description="error.message"
>
<template #footer>
<n-button @click="handleError">
Back home
</n-button>
</template>
</n-result>
</div>
<naive-config>
<div class="page justify-center items-center">
<n-result
:status="error.statusCode?.toString()"
:builtin-theme-overrides="{ titleFontSizeMedium: '24px' }"
:title="error.statusMessage || 'Oops, something went wrong'"
:description="error.message"
>
<template #footer>
<n-button type="primary" @click="handleError">
Back home
</n-button>
</template>
</n-result>
</div>
</naive-config>
</template>
<script setup lang="ts">
Expand Down

0 comments on commit e6dbabb

Please sign in to comment.