-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into tooling-dashboard/fix-stardust-tiem-grouping
- Loading branch information
Showing
41 changed files
with
908 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@iota/create-dapp': minor | ||
--- | ||
|
||
Update some outdated eslint dependencies of the `@iota/create-dapp` templates, to their eslint v9-compatible versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 28 additions & 3 deletions
31
apps/wallet-dashboard/app/(protected)/components/top-nav/TopNav.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,43 @@ | ||
// Copyright (c) 2024 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { SettingsDialog, useSettingsDialog } from '@/components'; | ||
import { Badge, BadgeType, Button, ButtonType } from '@iota/apps-ui-kit'; | ||
import { ConnectButton, useIotaClientContext } from '@iota/dapp-kit'; | ||
import { getNetwork, Network } from '@iota/iota-sdk/client'; | ||
import { ThemeSwitcher } from '@iota/core'; | ||
import { ConnectButton } from '@iota/dapp-kit'; | ||
import { Settings } from '@iota/ui-icons'; | ||
|
||
export function TopNav() { | ||
const { network } = useIotaClientContext(); | ||
const { name: networkName } = getNetwork(network); | ||
const { | ||
isSettingsDialogOpen, | ||
settingsDialogView, | ||
setSettingsDialogView, | ||
onCloseSettingsDialogClick, | ||
onOpenSettingsDialogClick, | ||
} = useSettingsDialog(); | ||
|
||
return ( | ||
<div className="flex w-full flex-row items-center justify-end gap-md py-xs--rs"> | ||
<Badge label="Mainnet" type={BadgeType.PrimarySoft} /> | ||
<Badge | ||
label={networkName} | ||
type={network === Network.Mainnet ? BadgeType.PrimarySoft : BadgeType.Neutral} | ||
/> | ||
<ConnectButton size="md" /> | ||
<SettingsDialog | ||
isOpen={isSettingsDialogOpen} | ||
handleClose={onCloseSettingsDialogClick} | ||
view={settingsDialogView} | ||
setView={setSettingsDialogView} | ||
/> | ||
<ThemeSwitcher /> | ||
<Button icon={<Settings />} type={ButtonType.Ghost} /> | ||
<Button | ||
icon={<Settings />} | ||
type={ButtonType.Ghost} | ||
onClick={onOpenSettingsDialogClick} | ||
/> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.