Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: <div> cannot be a child of <p> (#6024)
# Motivation Fix warning which becomes an error with Svelte v5 tooling (PR #6020). ``` /Users/daviddalbusco/projects/dfinity/nns-dapp/frontend/src/lib/components/accounts/CkBTCInfoCard.svelte 85:15 error `<div>` cannot be a descendant of `<p>`. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a `hydration_mismatch` warning https://svelte.dev/e/node_invalid_placement_ssr(node_invalid_placement_ssr) svelte/valid-compile ``` # Changes - Transform container `p` into a `div`. Signed-off-by: David Dal Busco <[email protected]>
- Loading branch information