Detekt: Rename DayNightPreviews to PreviewsDayNight to follow naming convention.

MultiPreview annotations should start with `Previews` as prefix
This commit is contained in:
Benoit Marty 2023-09-21 08:26:17 +02:00 committed by Benoit Marty
parent 97f2d211ae
commit 0e4c146e87
146 changed files with 319 additions and 319 deletions

View file

@ -171,11 +171,11 @@ For instance, when updating the image `src` of an ImageView, please also conside
### Jetpack Compose
When adding or editing `@Composable`, make sure that you create an internal function annotated with `@DayNightPreviews`, with a name suffixed by `Preview`, and having `ElementPreview` as the root composable.
When adding or editing `@Composable`, make sure that you create an internal function annotated with `@PreviewsDayNight`, with a name suffixed by `Preview`, and having `ElementPreview` as the root composable.
Example:
```kotlin
@DayNightPreviews
@PreviewsDayNight
@Composable
internal fun PinIconPreview() = ElementPreview {
PinIcon()