Inject a StringProvider instead of the context, and update tests.
Also remove the other StringProvider we had, it was not used anymore
This commit is contained in:
parent
1edd419915
commit
d2253300db
7 changed files with 36 additions and 29 deletions
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.libraries.designsystem.utils
|
||||
|
||||
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
|
||||
|
||||
open class StringProvider(val strings: List<String>) : PreviewParameterProvider<String> {
|
||||
override val values: Sequence<String>
|
||||
get() = strings.asSequence()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue