Fix wrong TopAppBar usage

This commit is contained in:
Benoit Marty 2025-07-04 09:43:30 +02:00
parent 5d81a0264b
commit f3eb0e69cc
2 changed files with 14 additions and 1 deletions

View file

@ -37,4 +37,17 @@ class KonsistImportTest {
it.name == "androidx.compose.material3.OutlinedTextField"
}
}
@Test
fun `material3 TopAppBar should not be used`() {
Konsist
.scopeFromProject()
.imports
.assertFalse(
additionalMessage = "Please use 'io.element.android.libraries.designsystem.theme.components.TopAppBar' instead of " +
"'androidx.compose.material3.TopAppBar.",
) {
it.name == "androidx.compose.material3.TopAppBar"
}
}
}