-
Notifications
You must be signed in to change notification settings - Fork 35
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
BAT gating for Web3 Brave Talk #1079
Merged
Merged
Changes from 14 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e872d23
first mockup on dev2
35fc7ca
remove cluttered talk, add request payload
a80a69c
change permission name from BAT-gating to balance as per spec sheet
e2a306a
Merge branch 'main' into dsuh-943-bat-gating
df65321
Merge pull request #1046 from brave/dsuh-943-bat-gating
dvdhs 48d36d5
Renovate/all minor patch (#1062)
mrose17 6b2d376
Renovate/node 18.x (#1068)
mrose17 1a96ffb
aesthetic changes
75884cb
Merge branch 'main' into dsuh-943-bat-gating
d72390d
Merge branch 'dev2' into dsuh-943-bat-gating
dvdhs 890fb99
updating default gated value to 1 wei
b25288c
Merge branch 'main' into dsuh-943-bat-gating
dvdhs 7512714
adding type/enum safety and removing needless futureproofing, using t…
a2794c7
Merge branch 'main' into dsuh-943-bat-gating
9b22a05
in date with main
507f3af
simple change for dev2 compat
e9c733a
fix error message + typo
0756e93
adding error text for no BAT in BAT-gating
f149660
ff with main
9bf850f
merging (fixed) main
76ce2af
fixed some optional stuff
11eb186
Merge branch 'main' into dsuh-943-bat-gating
dvdhs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,55 @@ | ||
import { css } from "@emotion/react"; | ||
import React, { ReactNode, useState } from "react"; | ||
import { baseText } from "./styles"; | ||
import PlusImage from "../../images/plus.svg"; | ||
import MinusImage from "../../images/minus.svg"; | ||
import SpinnerImage from "../../images/spinner.svg"; | ||
|
||
interface Props { | ||
header: string; | ||
subhead: string; | ||
loading?: boolean; | ||
children?: ReactNode; | ||
} | ||
|
||
export const NonExapandablePanel: React.FC<Props> = ({ | ||
header, | ||
subhead, | ||
loading = false, | ||
children, | ||
}) => { | ||
return ( | ||
<div | ||
css={{ | ||
background: "rgba(255, 255, 255, 0.24)", | ||
backdropFilter: "blur(8px)", | ||
marginTop: "11px", | ||
padding: "24px 19px", | ||
textAlign: "left", | ||
}} | ||
> | ||
<div | ||
css={{ | ||
display: "flex", | ||
alignItems: "center", | ||
}} | ||
> | ||
<div css={{ flex: 1 }}> | ||
<div | ||
css={css(baseText, { | ||
fontWeight: 500, | ||
fontSize: "22px", | ||
lineHeight: "32px", | ||
})} | ||
> | ||
{header} | ||
</div> | ||
<div>{subhead}</div> | ||
</div> | ||
{loading && ( | ||
<img width={25} height={26} src={SpinnerImage} alt="spinner" /> | ||
)} | ||
</div> | ||
</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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
children
looks like it's not used - if that's what was intended we should remove it.