REFACTOR: SF description in Augmentations tab and BitVerse may not be the same (#2013)

This commit is contained in:
catloversg
2025-03-13 08:44:37 +07:00
committed by GitHub
parent b0165d5c2c
commit ae99055d5a
5 changed files with 144 additions and 272 deletions
+4 -4
View File
@@ -83,12 +83,12 @@ function BitNodePortal(props: IPortalProps): React.ReactElement {
BitNode-{bitNode.number.toString()}: {bitNode.name}
</strong>
<br />
{bitNode.desc}
{bitNode.tagline}
</Typography>
}
>
{Settings.DisableASCIIArt ? (
<Button onClick={() => setPortalOpen(true)} sx={{ m: 2 }} aria-description={bitNode.desc}>
<Button onClick={() => setPortalOpen(true)} sx={{ m: 2 }} aria-description={bitNode.tagline}>
<Typography>
BitNode-{bitNode.number.toString()}: {bitNode.name}
</Typography>
@@ -98,7 +98,7 @@ function BitNodePortal(props: IPortalProps): React.ReactElement {
onClick={() => setPortalOpen(true)}
className={cssClass}
aria-label={`BitNode-${bitNode.number.toString()}: ${bitNode.name}`}
aria-description={bitNode.desc}
aria-description={bitNode.tagline}
>
O
</IconButton>
@@ -192,7 +192,7 @@ export function BitverseRoot(props: IProps): React.ReactElement {
<>
{Object.values(BitNodes)
.filter((node) => {
return node.desc !== "COMING SOON";
return node.tagline !== "COMING SOON";
})
.map((node) => {
return (
+1 -1
View File
@@ -95,7 +95,7 @@ export function PortalModal(props: IProps): React.ReactElement {
<Typography variant="h4">
BitNode-{props.n}: {bitNode.name}
</Typography>
<Typography variant="h5">{bitNode.desc}</Typography>
<Typography variant="h5">{bitNode.tagline}</Typography>
<br />
<Typography>
Source-File Level: {props.level} / {maxSourceFileLevel}