Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(explorer): add funcitonality to remove networks #2401

Merged
merged 24 commits into from
Jul 22, 2024

Conversation

sstraatemans
Copy link
Contributor

Copy link

vercel bot commented Jul 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
alpha-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 0:19am
dev-wallet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 0:19am
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 0:19am
kode-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 0:19am
marmalade-marketplace ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 0:19am
proof-of-us ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 0:19am
tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 0:19am

Copy link

changeset-bot bot commented Jul 12, 2024

🦋 Changeset detected

Latest commit: 2529df6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kadena/explorer Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

# Conflicts:
#	packages/apps/explorer/src/components/routing/useRouter.tsx
#	packages/apps/explorer/src/components/select-network/select-network.tsx
#	packages/apps/explorer/src/context/networks-context.tsx
# Conflicts:
#	packages/apps/explorer/src/components/select-network/new-network.tsx
#	packages/apps/explorer/src/context/networks-context.tsx
@sstraatemans sstraatemans marked this pull request as ready for review July 22, 2024 08:11
Copy link
Contributor

@Randynamic Randynamic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this a lot I only want to add a bit of margin on the right side to make the text more readable
Screenshot 2024-07-22 at 12 00 59

@isaozler
Copy link
Contributor

isaozler commented Jul 22, 2024

I like this a lot I only want to add a bit of margin on the right side to make the text more readable Screenshot 2024-07-22 at 12 00 59

I will share the new design for this. this was already changing

Comment on lines +250 to +272
<CardFooter>
{!isDefaultNetwork(network) && !network.isNew && (
<Button onPress={handleRemove} variant="negative">
Remove
</Button>
)}
<Stack flex={1} />

{!isDefaultNetwork(network) && (
<>
<Button
onPress={() => {
handleOpen(false);
}}
variant="outlined"
>
Cancel
</Button>
<Button type="submit">
{!network.isNew ? 'Update network' : 'Create Network'}
</Button>
</>
)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you trying to have buttons with space between? If so, there should be a prop on the CardFooter that allows for this (separated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants