client/web: render 404 message in empty card

Switch the "feature disabled" page to use the same treatment.

Updates #10261

Signed-off-by: Will Norris <will@tailscale.com>
pull/10461/head
Will Norris 7 months ago committed by Will Norris
parent 65643f6606
commit 9441a4e15d

@ -89,7 +89,7 @@ function WebClient({
/>
</FeatureRoute>
<Route>
<h2 className="mt-8">Page not found</h2>
<div className="mt-8 card">Page not found</div>
</Route>
</Switch>
</Router>
@ -117,9 +117,9 @@ function FeatureRoute({
return (
<Route path={path}>
{!node.Features[feature] ? (
<h2 className="mt-8">
<div className="mt-8 card">
{featureDescription(feature)} not available on this device.
</h2>
</div>
) : (
children
)}

Loading…
Cancel
Save