Changed DayJS Namespace

This commit is contained in:
2024-01-05 18:17:50 +01:00
parent 61793838bb
commit 8822854040
10 changed files with 34 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
<script setup>
import * as dayjs from "dayjs"
import * as dayJS from "dayjs"
const props = defineProps({
type: {
required: true,
@@ -123,7 +123,7 @@ const renderText = (text) => {
<h3 v-if="item.user">{{dataStore.profiles.find(profile => profile.id === item.user) ? dataStore.profiles.find(profile => profile.id === item.user).fullName : ""}}</h3>
<h3 v-else>Spaces Bot</h3>
<span v-html="renderText(item.text)"/><br>
<span class="text-gray-500">{{dayjs(item.created_at).format("DD:MM:YY HH:mm")}}</span>
<span class="text-gray-500">{{dayJS(item.created_at).format("DD:MM:YY HH:mm")}}</span>
</div>
</div>