|
@@ -11,7 +11,7 @@ const Settings: NextPage = () => {
|
|
const isLatest = latestVersion === `v${Package.version}`;
|
|
const isLatest = latestVersion === `v${Package.version}`;
|
|
|
|
|
|
const renderUpdate = () => {
|
|
const renderUpdate = () => {
|
|
- if (!isLatest) {
|
|
|
|
|
|
+ if (isLatest) {
|
|
return (
|
|
return (
|
|
<Text fontSize="md" color="green.500">
|
|
<Text fontSize="md" color="green.500">
|
|
Your Tipi install is up to date. Version {Package.version}
|
|
Your Tipi install is up to date. Version {Package.version}
|
|
@@ -24,7 +24,7 @@ const Settings: NextPage = () => {
|
|
You are not using the latest version of Tipi. There is a new version ({latestVersion}) available. Visit{' '}
|
|
You are not using the latest version of Tipi. There is a new version ({latestVersion}) available. Visit{' '}
|
|
<a className="text-blue-600" target="_blank" rel="noreferrer" href={`https://github.com/meienberger/runtipi/releases/${latestVersion}`}>
|
|
<a className="text-blue-600" target="_blank" rel="noreferrer" href={`https://github.com/meienberger/runtipi/releases/${latestVersion}`}>
|
|
Github
|
|
Github
|
|
- </a>
|
|
|
|
|
|
+ </a>{' '}
|
|
for update instructions.
|
|
for update instructions.
|
|
</Text>
|
|
</Text>
|
|
);
|
|
);
|