mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 22:06:53 +08:00

Dynamically setting the `layoutName` is not compatible with template colocation. Instead, we can give each field type a dedicated component and make `<UserField` a wrapper which renders the correct implementation.