Skip to content

Commit

Permalink
chore: added preview to composables
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill committed Jan 29, 2024
1 parent 211a876 commit 4ce5203
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import org.openedx.core.R
import org.openedx.core.ui.theme.OpenEdXTheme
import org.openedx.core.ui.theme.appColors

@Composable
Expand All @@ -23,3 +25,11 @@ fun LogistrationLogoView() {
colorFilter = ColorFilter.tint(MaterialTheme.appColors.primary)
)
}

@Preview(widthDp = 375)
@Composable
fun LogistrationLogoViewPreview() {
OpenEdXTheme {
LogistrationLogoView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import org.openedx.core.R
import org.openedx.core.ui.theme.OpenEdXTheme

@Composable
fun SignInLogoView() {
Expand All @@ -27,3 +29,11 @@ fun SignInLogoView() {
)
}
}

@Preview(widthDp = 375, heightDp = 400)
@Composable
fun SignInLogoViewPreview() {
OpenEdXTheme {
SignInLogoView()
}
}

0 comments on commit 4ce5203

Please sign in to comment.