-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/5.16.0' into feature/token-allowlist
# Conflicts: # extension/src/popup/components/WarningMessages/index.tsx
- Loading branch information
Showing
36 changed files
with
1,309 additions
and
468 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,36 @@ | ||
.ModalInfo { | ||
&--connection-request { | ||
display: flex; | ||
justify-content: center; | ||
margin-bottom: 0.75rem; | ||
} | ||
|
||
&--connection-request-pill { | ||
display: flex; | ||
align-items: center; | ||
padding: 0 0.5rem; | ||
background-color: var(--color-gray-20); | ||
color: var(--color-gray-70); | ||
border: 1px solid var(--color-gray-30); | ||
border-radius: 6px; | ||
margin-bottom: 0.5rem; | ||
line-height: 1.25rem; | ||
|
||
p { | ||
font-size: 0.75rem; | ||
margin-left: 0.25rem; | ||
} | ||
} | ||
|
||
&--subject { | ||
border-bottom: 1px solid var(--color-gray-30); | ||
color: var(--color-gray-90); | ||
font-size: 0.75rem; | ||
color: var(--color-gray-70); | ||
background-color: var(--color-gray-30); | ||
border-radius: 6px; | ||
line-height: 1.5rem; | ||
margin-bottom: 1.5rem; | ||
padding-bottom: 1.5rem; | ||
padding: 0.5rem; | ||
text-align: center; | ||
} | ||
|
||
&--card { | ||
margin-bottom: 2rem; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React, { ReactNode } from "react"; | ||
import classnames from "classnames"; | ||
|
||
import "./styles.scss"; | ||
|
||
interface TabsProps { | ||
tabs: string[]; | ||
renderTab: (tab: string) => ReactNode; | ||
} | ||
|
||
export const Tabs = (props: TabsProps) => { | ||
const [activeTab, setActiveTab] = React.useState(props.tabs[0]); | ||
return ( | ||
<div className="Tabs"> | ||
<div className="Tabs__Selectors"> | ||
{props.tabs.map((tab) => { | ||
const classes = classnames("Tab", { Active: activeTab === tab }); | ||
return ( | ||
<div | ||
className={classes} | ||
key={tab} | ||
onClick={() => setActiveTab(tab)} | ||
> | ||
{tab} | ||
</div> | ||
); | ||
})} | ||
</div> | ||
<div className="Tabs__Body">{props.renderTab(activeTab)}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.Tabs { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
&__Selectors { | ||
display: flex; | ||
height: 25px; | ||
border: 1px solid var(--color-gray-40); | ||
border-radius: 4px; | ||
font-size: 0.8rem; | ||
font-weight: 600; | ||
margin-bottom: 1rem; | ||
|
||
.Tab { | ||
flex: 1; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 0.25rem; | ||
cursor: pointer; | ||
|
||
&.Active { | ||
background-color: var(--color-gray-40); | ||
} | ||
|
||
&:first-child { | ||
border-right: 1px solid var(--color-gray-40); | ||
} | ||
|
||
&:last-child { | ||
border-left: 1px solid var(--color-gray-40); | ||
} | ||
} | ||
} | ||
|
||
&__Body { | ||
display: flex; | ||
flex-grow: 1; | ||
margin-bottom: 10px; | ||
height: 230px; | ||
overflow-y: auto; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
extension/src/popup/components/identicons/KeyIdenticon/styles.scss
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.