Remove bleh file (why it's there?)
This commit is contained in:
parent
ad663b105b
commit
8a0a6ece68
1 changed files with 0 additions and 23 deletions
|
|
@ -1,23 +0,0 @@
|
||||||
// Updated RPCPreview.tsx to properly wrap all conditional renders and ensure getStorage is called consistently.
|
|
||||||
|
|
||||||
import React from 'react';
|
|
||||||
import { getStorage } from './storage';
|
|
||||||
|
|
||||||
const RPCPreview = () => {
|
|
||||||
const storageData = getStorage();
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{storageData ? (
|
|
||||||
<div>
|
|
||||||
{/* Conditional render based on storageData */}
|
|
||||||
{storageData.isAvailable ? <AvailableComponent /> : <UnavailableComponent />}
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div>Loading...</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default RPCPreview;
|
|
||||||
Loading…
Add table
Reference in a new issue