Fixed build issues

This commit is contained in:
sewmina7@gmail.com 2024-06-18 13:16:31 +05:30
parent 696cf2a517
commit 505d37b068
2 changed files with 3 additions and 17 deletions

View File

@ -21,21 +21,6 @@ const generateRandomPoint = () => {
return Math.floor(Math.random() * (100 - 10 + 1)) + 10; return Math.floor(Math.random() * (100 - 10 + 1)) + 10;
}; };
// Generate pseudo data for rows
const generateTableData = (rows) => {
const data = [];
for (let i = 0; i < rows; i++) {
data.push({
name: generateRandomName(),
coin: generateRandomCoin(),
point: generateRandomPoint(),
});
}
return data;
};
const tableData = generateTableData(10);
function Home() { function Home() {
const { login, user, ready, logout, linkTwitter, unlinkTwitter, linkWallet, unlinkWallet } = usePrivy(); const { login, user, ready, logout, linkTwitter, unlinkTwitter, linkWallet, unlinkWallet } = usePrivy();
const [darkMode, setDarkMode] = useState(true); const [darkMode, setDarkMode] = useState(true);
@ -111,13 +96,13 @@ function Home() {
{ready && user ? ( {ready && user ? (
<div className="flex items-center bg-white bg-opacity-20 rounded-full px-4 py-2"> <div className="flex items-center bg-white bg-opacity-20 rounded-full px-4 py-2">
<button className={`relative ${twitterConnected ? "bg-black" : "bg-gray-700"} hover:bg-gray-500 text-white font-bold py-2 px-4 rounded-full mr-2`} onClick={twitterConnected ? unlinkTwitter : linkTwitter}> <button className={`relative ${twitterConnected ? "bg-black" : "bg-gray-700"} hover:bg-gray-500 text-white font-bold py-2 px-4 rounded-full mr-2`} onClick={linkTwitter}>
<FaTwitter className="h-5 w-5 text-white" /> <FaTwitter className="h-5 w-5 text-white" />
{twitterConnected && ( {twitterConnected && (
<CheckIcon className="absolute top-0 right-0 h-4 w-4 text-green-500" /> <CheckIcon className="absolute top-0 right-0 h-4 w-4 text-green-500" />
)} )}
</button> </button>
<button className={`relative ${walletConnected ? "bg-black" : "bg-gray-700"} hover:bg-gray-500 text-white font-bold py-2 px-4 rounded-full mr-2` } onClick={walletConnected ? unlinkWallet : linkWallet}> <button className={`relative ${walletConnected ? "bg-black" : "bg-gray-700"} hover:bg-gray-500 text-white font-bold py-2 px-4 rounded-full mr-2` } onClick={linkWallet}>
<FaWallet className="h-5 w-5 text-white" /> <FaWallet className="h-5 w-5 text-white" />
{walletConnected && ( {walletConnected && (
<CheckIcon className="absolute top-0 right-0 h-4 w-4 text-green-500" /> <CheckIcon className="absolute top-0 right-0 h-4 w-4 text-green-500" />

View File

@ -3,6 +3,7 @@
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"noImplicitAny": false,
"strict": true, "strict": true,
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,