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>
This commit is contained in:
@ -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
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user