-
Notifications
You must be signed in to change notification settings - Fork 10
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 #52 from RileyTheFox/old-version-warning
Old version warning and version tag for latest release
- Loading branch information
Showing
2 changed files
with
50 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Button, { ButtonColor } from "@app/components/Button"; | ||
import { BaseDialog } from "./BaseDialog"; | ||
import { closeDialog } from ".."; | ||
|
||
export class OldVersionDialog extends BaseDialog<Record<string, never>> { | ||
constructor(props: Record<string, unknown>) { | ||
super(props); | ||
} | ||
|
||
getInnerContents() { | ||
return <> | ||
<p> | ||
<strong>You are trying to select an old version of this application!</strong> | ||
 These versions may be missing features, contain bugs and potentially corrupt your game data. Use at your own risk! | ||
</p> | ||
</>; | ||
} | ||
|
||
getTitle() { | ||
return <>Old Application Version</>; | ||
} | ||
|
||
getButtons() { | ||
return <> | ||
<Button color={ButtonColor.RED} rounded onClick={() => closeDialog("cancel")}> | ||
Cancel | ||
</Button> | ||
<Button color={ButtonColor.GREEN} rounded onClick={() => closeDialog("okay")}> | ||
Okay | ||
</Button> | ||
</>; | ||
} | ||
} |
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