fix: update user check in HomePage and change documentation link in SiteList to external URL
This commit is contained in:
@@ -17,7 +17,7 @@ export default function HomePage() {
|
|||||||
const [sitesLoading, setSitesLoading] = useState(true)
|
const [sitesLoading, setSitesLoading] = useState(true)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (user) {
|
if (user?.org_id) {
|
||||||
loadSites()
|
loadSites()
|
||||||
}
|
}
|
||||||
}, [user])
|
}, [user])
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export default function SiteList({ sites, loading, onDelete }: SiteListProps) {
|
|||||||
</div>
|
</div>
|
||||||
<h3 className="font-semibold text-neutral-900 dark:text-white">Need help setup?</h3>
|
<h3 className="font-semibold text-neutral-900 dark:text-white">Need help setup?</h3>
|
||||||
<p className="mb-4 text-sm text-neutral-500 dark:text-neutral-400">Check our documentation for installation guides.</p>
|
<p className="mb-4 text-sm text-neutral-500 dark:text-neutral-400">Check our documentation for installation guides.</p>
|
||||||
<Link href="/docs" className="text-sm font-medium text-brand-orange hover:underline">
|
<Link href="https://docs.ciphera.net" target="_blank" className="text-sm font-medium text-brand-orange hover:underline">
|
||||||
Read Documentation →
|
Read Documentation →
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user