mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-27 18:42:17 +03:00
add a phat warning if app is not updated
This commit is contained in:
parent
e39510479d
commit
988db4bb6e
@ -343,9 +343,16 @@ td {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.app-warning {
|
||||
background: var(--orange) !important;
|
||||
color: var(--text-light);
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.app-description {
|
||||
margin-bottom: 2rem;
|
||||
line-height: 1.6;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.app-info {
|
||||
@ -1246,7 +1253,8 @@ td {
|
||||
.tooltip-content::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -20px; /* Cover the gap between icon and content */
|
||||
left: -20px;
|
||||
/* Cover the gap between icon and content */
|
||||
top: 0;
|
||||
width: 20px;
|
||||
height: 100%;
|
||||
|
@ -122,6 +122,8 @@ export default function AppPage() {
|
||||
return <div className="app-page"><h4>App details not found for {id}</h4></div>;
|
||||
}
|
||||
|
||||
const valid_wit_version = app.metadata?.properties?.wit_version === 1
|
||||
|
||||
return (
|
||||
<section className="app-page">
|
||||
<div className="app-header">
|
||||
@ -134,6 +136,10 @@ export default function AppPage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="app-warning">
|
||||
{valid_wit_version ? <></> : "THIS APP MUST BE UPDATED TO 1.0"}
|
||||
</div>
|
||||
|
||||
<div className="app-description">{app.metadata?.description || "No description available"}</div>
|
||||
|
||||
<div className="app-info">
|
||||
@ -155,7 +161,7 @@ export default function AppPage() {
|
||||
</li>
|
||||
)}
|
||||
<li><span>Publisher:</span> <span>{app.package_id.publisher_node}</span></li>
|
||||
<li><span>License:</span> <span>{app.metadata?.properties?.license || "Not specified"}</span></li>
|
||||
{app.metadata?.properties?.license ? <li><span>License:</span> <span>app.metadata?.properties?.license</span></li> : <></>}
|
||||
<li>
|
||||
<span>Auto Update:</span>
|
||||
<span className="status-icon">
|
||||
|
@ -45,7 +45,7 @@ export interface Erc721Properties {
|
||||
code_hashes: [string, string][];
|
||||
license?: string;
|
||||
screenshots?: string[];
|
||||
wit_version?: [number, number, number];
|
||||
wit_version?: number;
|
||||
}
|
||||
|
||||
export interface OnchainPackageMetadata {
|
||||
|
Loading…
Reference in New Issue
Block a user