mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-24 02:01:01 +00:00
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:
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…
x
Reference in New Issue
Block a user