Initial commit
This commit is contained in:
@@ -8,6 +8,8 @@ export default function Profile() {
|
||||
const [user, setUser] = useState<any>(null);
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
const botUsername = import.meta.env.VITE_BOT_USERNAME || "netrunner_vpn_bot";
|
||||
|
||||
useEffect(() => {
|
||||
fetchProfile()
|
||||
.then(setUser)
|
||||
@@ -107,7 +109,7 @@ export default function Profile() {
|
||||
className="w-full bg-background border border-border/50 hover:border-secondary/50 flex items-center justify-between p-4 rounded-2xl transition-colors"
|
||||
>
|
||||
<span className="text-xs text-muted-foreground truncate mr-4">
|
||||
https://t.me/netrunner_vpn_bot?start={user.tg_id}
|
||||
https://t.me/{botUsername}?start={user.tg_id}
|
||||
</span>
|
||||
<Copy className="w-4 h-4 text-secondary shrink-0" />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user