Skip to content

Commit

Permalink
fix type errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Sep 15, 2024
1 parent a6b0379 commit e358630
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/entities/profiler/ui/top-functions/top-functions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { formatFileSize } from '@/shared/lib/formats/format-file-size'
import { type EventId } from '@/shared/types'
import { StatBoard } from '@/shared/ui'
import { useProfiler } from '../../lib'
import type { Profiler, ProfilerTopFunctions } from '../../types'
import type { ProfilerTopFunctions } from '../../types'
type Props = {
id: EventId
Expand Down
2 changes: 0 additions & 2 deletions src/entities/sentry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export type SentryException = Omit<SentryTypes.Exception, 'mechanism'> & {
}
export type SentryContextRuntime = SentryTypes.Runtime

export type SentryContextOS = SentryTypes.OsContext

export type SentryDevice = Omit<SentryTypes.DeviceContext, 'orientation'> & {
timezone?: string;
type?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { computed, ref } from 'vue'
import { IconSvg } from '@/shared/ui'
import type { Sentry, SentryContextRuntime, SentryContextOS, SentryContexts } from '../../types'
import type { Sentry, SentryContextRuntime, SentryContexts } from '../../types'
type Props = {
payload: Sentry
Expand Down
2 changes: 1 addition & 1 deletion src/entities/smtp/ui/smtp-page/smtp-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import moment from 'moment'
import { computed, onMounted, ref } from 'vue'
import { Tab, Tabs } from 'vue3-tabs-component'
import { htmlEncode } from '@/shared/lib/helpers'
import { REST_API_URL, useAttachments } from '@/shared/lib/io'
import { useAttachments } from '@/shared/lib/io'
import type { NormalizedEvent, Attachment } from '@/shared/types'
import {
TableBase,
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/stat-board/stat-board.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const statItems = computed(() => [
<h4 class="stat-board__item-name">
{{ item.title }}

<span v-if="item.percent > 0" class="stat-board__item-name-detail">
<span v-if="item.percent && item.percent > 0" class="stat-board__item-name-detail">
[{{ item.percent }}%]
</span>
</h4>
Expand Down

0 comments on commit e358630

Please sign in to comment.