chore: code refactor

This commit is contained in:
nivedin
2023-12-29 19:55:22 +05:30
committed by Andrew Bastin
parent 52ef2d8d32
commit 6ed4b73a34

View File

@@ -19,18 +19,10 @@
:shared-request-i-d="sharedRequestID" :shared-request-i-d="sharedRequestID"
/> />
<div v-else class="flex flex-1 flex-col items-center justify-center p-4"> <div v-else class="flex flex-1 flex-col items-center justify-center p-4">
<HoppSmartSpinner v-if="sharedRequestDetails.loading" />
<div <div
v-if="sharedRequestDetails.loading" v-else-if="E.isLeft(sharedRequestDetails.data)"
class="flex flex-1 flex-col items-center justify-center p-4" class="flex flex-col items-center"
>
<HoppSmartSpinner />
</div>
<div v-else>
<div
v-if="
!sharedRequestDetails.loading && E.isLeft(sharedRequestDetails.data)
"
class="flex flex-col items-center p-4"
> >
<icon-lucide-alert-triangle class="svg-icons mb-2 opacity-75" /> <icon-lucide-alert-triangle class="svg-icons mb-2 opacity-75" />
<h1 class="heading text-center"> <h1 class="heading text-center">
@@ -40,20 +32,11 @@
{{ t("error.invalid_embed_link") }} {{ t("error.invalid_embed_link") }}
</p> </p>
</div> </div>
<div <h1 v-if="E.isRight(sharedRequestDetails.data)" class="heading">
v-if="
!sharedRequestDetails.loading &&
E.isRight(sharedRequestDetails.data)
"
class="flex flex-1 flex-col items-center justify-center p-4"
>
<h1 class="heading">
{{ t("state.loading") }} {{ t("state.loading") }}
</h1> </h1>
</div> </div>
</div> </div>
</div>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">