0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

fix(console): center align card title when subtitle is not available (#5432)

This commit is contained in:
Charles Zhao 2024-02-26 15:58:22 +08:00 committed by GitHub
parent 7edfeb0aa0
commit 83fe58aa6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ type Props = {
* is intended to be translated.
*/
function DangerousRaw({ children }: Props) {
return <span>{children}</span>;
return children ? <span>{children}</span> : null;
}
export default DangerousRaw;