Skip to content

Commit

Permalink
chore: change warning
Browse files Browse the repository at this point in the history
  • Loading branch information
koriwi committed Nov 2, 2022
1 parent 54bbcb7 commit 0dc8984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/ModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { CustomAlert } from "./CustomAlert";
export const ModalBody = () => {
const nav = useNavigate();
useEffect(() => {
if (localStorage.getItem("dontShowDeprecatedInfo") === null) {
if (localStorage.getItem("dontShow128Info") === null) {
nav("/deprecated-info");
}
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down
15 changes: 5 additions & 10 deletions src/containers/DeprecatedInfoModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import { useNavigate } from "react-router";
import { Anchor } from "../lib/components/Anchor";

import { FDWindow } from "../lib/components/Window";

Expand All @@ -13,20 +12,16 @@ export const DeprecatedInfoModal: React.FC<{}> = () => {
visible={true}
setClose={() => {
nav("/");
localStorage.setItem("dontShowDeprecatedInfo", "true");
localStorage.setItem("dontShow128Info", "true");
}}
title="Deprecation Info"
>
<div className="flex flex-col items-center space-y-4 p-8 text-xl">
<div className="text-danger-500 text-4xl pb-4">Attention!</div>
<div>This is the new configurator.</div>
<div>Your old config is not supported anymore. </div>
<div>Please create a new one with this new configurator.</div>
<div>You can find the old configurator here:</div>
<Anchor newTab href="https://fdold.freeyourstream.com" className="text-primary-500">
fdold.freeyourstream.com
</Anchor>
<div>It won't receive further updates</div>
<div>The config format changed slightly.</div>
<div>You need to update the firmware of your FreeDeck. </div>
<div>Then just save the config once again and everything is fine.</div>
<div>The update allows for storing 60 keys instead of 7.</div>
</div>
</FDWindow>
);
Expand Down

0 comments on commit 0dc8984

Please sign in to comment.