Skip to content

Commit 8e643ea

Browse files
authored
[Tech] Update hp ui to new exports (#1324)
* update hp ui to omega tag * bump hp ui * update hp ui with type exports * bump hp ui * bump hp ui
1 parent 14a263f commit 8e643ea

File tree

7 files changed

+27
-18
lines changed

7 files changed

+27
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@hyperplay/chains": "^0.6.1",
7373
"@hyperplay/check-disk-space": "^3.5.2",
7474
"@hyperplay/quests-ui": "^0.4.0",
75-
"@hyperplay/ui": "^1.30.14",
75+
"@hyperplay/ui": "^1.32.1",
7676
"@hyperplay/utils": "^0.3.14",
7777
"@mantine/carousel": "^7.12.0",
7878
"@mantine/core": "^7.12.0",

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/components/UI/DownloadToastManager/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import React, { useContext, useEffect, useState } from 'react'
2-
import { DownloadToast, Images, CircularButton } from '@hyperplay/ui'
2+
import {
3+
DownloadToast,
4+
Images,
5+
CircularButton,
6+
DownloadStatus
7+
} from '@hyperplay/ui'
38
import { DMQueueElement } from 'common/types'
49
import { DMQueue } from 'frontend/types'
510
import ContextProvider from 'frontend/state/ContextProvider'
611
import { useTranslation } from 'react-i18next'
712
import DownloadToastManagerStyles from './index.module.scss'
813
import { launch } from 'frontend/helpers'
914
import StopInstallationModal from '../StopInstallationModal'
10-
import { downloadStatus } from '@hyperplay/ui/dist/components/DownloadToast'
1115
import { useGetDownloadStatusText } from 'frontend/hooks/useGetDownloadStatusText'
1216
import DMQueueState from 'frontend/state/DMQueueState'
1317
import { isNotNative } from 'frontend/helpers/library'
@@ -153,7 +157,7 @@ export default function DownloadToastManager() {
153157
}
154158
const installPath = currentElement?.params.path
155159

156-
function getDownloadStatus(): downloadStatus {
160+
function getDownloadStatus(): DownloadStatus {
157161
if (isPatching) return 'showOnlyCancel'
158162
if (isExtracting) return 'inExtraction'
159163
if (DMQueueState.isPaused(appName)) return 'paused'

src/frontend/index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@use './styles/colors';
22
@use './styles/buttons';
3+
@use '@hyperplay/ui/styles' as *;
4+
35
:root {
46
@include colors.colorSystem;
57

src/frontend/screens/Achievements/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import React from 'react'
22
import walletState from 'frontend/state/WalletState'
3-
import { AchievementCard, AchievementSummaryTable } from '@hyperplay/ui'
3+
import {
4+
AchievementCardProps,
5+
AchievementCard,
6+
AchievementSummaryTable
7+
} from '@hyperplay/ui'
48
import { NavLink } from 'react-router-dom'
5-
import { StatusIconState } from '@hyperplay/ui/dist/components/AchievementCard/components/StatusIcon'
69
import { useTranslation } from 'react-i18next'
710
import { observer } from 'mobx-react-lite'
811
import AchievementState, {
@@ -80,7 +83,7 @@ export default observer(function Achievements(): React.JSX.Element {
8083
mintedAchievementsCount={game.mintedAchievementCount}
8184
totalAchievementsCount={game.totalAchievementCount}
8285
isNewAchievement={game.isNewAchievement}
83-
state={state as StatusIconState}
86+
state={state as AchievementCardProps['state']}
8487
ctaProps={{
8588
onClick: (e) => {
8689
e.preventDefault()

src/frontend/screens/Quests/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '@hyperplay/ui/utilities/_variables.scss';
1+
@use '@hyperplay/ui/utilities/_variables.scss' as *;
22

33
.root {
44
display: grid;

src/frontend/screens/TransactionNotification/components/PhoneIcon/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66
PhoneWaitingConfimationSpinner
77
} from 'frontend/assets/hyperplay'
88
import Loading from './Loading'
9-
import { statusType } from '@hyperplay/ui/dist/components/TransactionToasts'
9+
import { TransactionStatus } from '@hyperplay/ui'
1010

1111
interface PhoneIconProps {
12-
status: statusType
12+
status: TransactionStatus
1313
}
1414

1515
const PhoneIcon = ({ status }: PhoneIconProps) => {

0 commit comments

Comments
 (0)