-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1156 from dm3-org/network-dialog
Network dialog
- Loading branch information
Showing
45 changed files
with
2,871 additions
and
591 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
25 changes: 25 additions & 0 deletions
25
packages/messenger-widget/src/components/ConfigureProfile/ClaimDM3Name.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { useContext } from 'react'; | ||
import { fetchDM3NameComponent } from './bl'; | ||
import { ConfigureProfileContext } from './context/ConfigureProfileContext'; | ||
import { DM3ConfigurationContext } from '../../context/DM3ConfigurationContext'; | ||
|
||
export function ClaimDM3Name() { | ||
const { dm3Configuration } = useContext(DM3ConfigurationContext); | ||
|
||
const { dm3NameServiceSelected } = useContext(ConfigureProfileContext); | ||
|
||
return ( | ||
<div className="mt-4 ms-4 me-4 dm3-prof-select-container"> | ||
<div className="dm3-prof-select-type"> | ||
Add new dm3 profile - claim dm3 profile - claim name | ||
</div> | ||
|
||
<div className="p-4"> | ||
{fetchDM3NameComponent( | ||
dm3NameServiceSelected, | ||
dm3Configuration.chainId, | ||
)} | ||
</div> | ||
</div> | ||
); | ||
} |
25 changes: 25 additions & 0 deletions
25
packages/messenger-widget/src/components/ConfigureProfile/ClaimOwnName.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { useContext } from 'react'; | ||
import { fetchComponent } from './bl'; | ||
import { ConfigureProfileContext } from './context/ConfigureProfileContext'; | ||
import { DM3ConfigurationContext } from '../../context/DM3ConfigurationContext'; | ||
|
||
export function ClaimOwnName() { | ||
const { dm3Configuration } = useContext(DM3ConfigurationContext); | ||
|
||
const { namingServiceSelected } = useContext(ConfigureProfileContext); | ||
|
||
return ( | ||
<div className="mt-4 ms-4 me-4 dm3-prof-select-container"> | ||
<div className="dm3-prof-select-type"> | ||
Add new dm3 profile - claim dm3 profile - claim name | ||
</div> | ||
|
||
<div className="ens-components-container"> | ||
{fetchComponent( | ||
namingServiceSelected, | ||
dm3Configuration.chainId, | ||
)} | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.