generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #423 from simularium/feature/version-info
Feature/version info
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Button } from "antd"; | ||
import React from "react"; | ||
|
||
import CustomModal from "../CustomModal"; | ||
|
||
import styles from "./style.css"; | ||
|
||
interface VersionModalProps { | ||
setModalVisible: (isModalVisible: boolean) => void; | ||
} | ||
|
||
const VersionModal: React.FC<VersionModalProps> = ({ setModalVisible }) => { | ||
const closeModal = () => { | ||
setModalVisible(false); | ||
}; | ||
|
||
const footerButton = ( | ||
<Button type="primary" onClick={closeModal}> | ||
Close | ||
</Button> | ||
); | ||
|
||
return ( | ||
<CustomModal | ||
className={styles.container} | ||
onCancel={closeModal} | ||
open | ||
footer={footerButton} | ||
centered | ||
title="Version Information" | ||
width={425} | ||
> | ||
<div> | ||
{" "} | ||
Application:{" "} | ||
<span className={styles.blueText}> | ||
{" "} | ||
simularium-website v{SIMULARIUM_WEBSITE_VERSION}{" "} | ||
</span> | ||
</div> | ||
<div> | ||
{" "} | ||
Viewer:{" "} | ||
<span className={styles.blueText}> | ||
{" "} | ||
simularium-viewer v{SIMULARIUM_VIEWER_VERSION}{" "} | ||
</span> | ||
</div> | ||
</CustomModal> | ||
); | ||
}; | ||
|
||
export default VersionModal; |
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,18 @@ | ||
.container .blue-text { | ||
color: var(--blue); | ||
} | ||
|
||
.container :global(.ant-modal-header) { | ||
padding: 12px 24px; | ||
} | ||
.container :global(.ant-modal-title) { | ||
font-weight: 400; | ||
} | ||
|
||
.container :global(.ant-modal-body) { | ||
padding: 12px 12px 0px 12px; | ||
} | ||
|
||
.container :global(.ant-modal-footer) { | ||
background-color: var(--modal-content-bg); | ||
} |