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 12 months ago committed by Will Norris
parent 65643f6606
commit 9441a4e15d

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

Loading…
Cancel
Save