Commit 0fbbf24e authored by timel's avatar timel

refactor: 85%

parent 64510003
import "./index.scss"; import styles from "./index.module.scss";
import React, { CSSProperties } from "react"; import React, { CSSProperties } from "react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
...@@ -63,14 +63,14 @@ export const EndModal: React.FC = () => { ...@@ -63,14 +63,14 @@ export const EndModal: React.FC = () => {
}} }}
onCancel={onReturn} onCancel={onReturn}
> >
<div className="end-container"> <div className={styles["end-container"]}>
<p <p
className="result" className={styles.result}
style={{ "--text-color": isWin ? "blue" : "red" } as CSSProperties} style={{ "--text-color": isWin ? "blue" : "red" } as CSSProperties}
> >
{isWin ? "Win" : "Defeated"} {isWin ? "Win" : "Defeated"}
</p> </p>
<p className="reason">{reason}</p> <p className={styles.reason}>{reason}</p>
{isReplay ? <></> : <p>{fetchStrings("!system", 1340)}</p>} {isReplay ? <></> : <p>{fetchStrings("!system", 1340)}</p>}
</div> </div>
</NeosModal> </NeosModal>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment