-
Notifications
You must be signed in to change notification settings - Fork 35
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 #1132 from brave/dsuh-943-bat-gating
Dsuh 943 bat gating
- Loading branch information
Showing
10 changed files
with
127 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -62,4 +62,4 @@ | |
"react-i18next": "13.0.1", | ||
"react-router-dom": "6.14.1" | ||
} | ||
} | ||
} |
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
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