-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
114 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import * as React from "react"; | ||
import { FormattedText } from "../popup/FormattedTextComponent"; | ||
|
||
export interface CasualVoteComponentProps { | ||
close: () => void; | ||
} | ||
|
||
export const CasualVoteOnboardingComponent = (props: CasualVoteComponentProps) => { | ||
|
||
return ( | ||
<div className="casualVoteMenuInner casualOnboarding" | ||
onClick={(e) => e.stopPropagation()} | ||
onMouseDown={(e) => e.stopPropagation()}> | ||
|
||
<div className="cbCasualVoteTitle"> | ||
<FormattedText | ||
langKey="newCasualMode" | ||
/> | ||
</div> | ||
|
||
<div className="cbCasualVoteLogoContainer"> | ||
<img | ||
className="cbCasualVoteLogo" | ||
src={chrome.runtime.getURL("icons/logo-casual.svg")} | ||
/> | ||
</div> | ||
|
||
<div className="cbCasualVoteDescription"> | ||
{chrome.i18n.getMessage("CasualModeDescription").split("\n").map((line, index) => ( | ||
<div key={index}>{line}</div> | ||
))} | ||
</div> | ||
|
||
<div className="cbVoteButtonContainer"> | ||
<button className="cbNoticeButton cbVoteButton" | ||
onClick={() => { | ||
chrome.runtime.sendMessage({ "message": "openConfig" }); | ||
props.close(); | ||
}}> | ||
<FormattedText | ||
langKey="OpenSettings" | ||
/> | ||
</button> | ||
</div> | ||
|
||
<div className="cbVoteButtonContainer"> | ||
<button className="cbNoticeButton cbVoteButton" | ||
onClick={() => { | ||
props.close(); | ||
}}> | ||
<FormattedText | ||
langKey="Dismiss" | ||
/> | ||
</button> | ||
</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