Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[[BF133]](#133) Made the FormFeedback States easily reusable. Doesn't…
… have to be consumed directly from the SDK
  • Loading branch information
andylamax committed Oct 7, 2021
commit 2381a53334dfc04d037720747892c48e9c84a8e1
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
- [[BF92]](https://github.com/picortex/bitframe/issues/92) Fixed sign in validation bug for empty sign in credentials
- [[BF93]](https://github.com/picortex/bitframe/issues/93) Attach Universal testing to cover future bugs

## Bitframe Presenters

- [[BF133]](https://github.com/picortex/bitframe/issues/133) Made the FormFeedback States easily reusable. Doesn't have to be consumed directly from the SDK

## Bitframe Test Containers

- [[BF96]](https://github.com/picortex/bitframe/issues/96) Make PiMonitor bitframe containers multiplatform
Expand Down
115 changes: 0 additions & 115 deletions Release.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ package bitframe.presenters.feedbacks
import kotlin.js.JsExport

sealed class FormFeedback(open val message: String) {
data class Loading(override val message: String) : FormFeedback(message)
data class Loading(override val message: String) : FormFeedback(message) {
val loading = true
}

data class Failure(
val cause: Throwable,
override val message: String = cause.message ?: "Unknown failure"
) : FormFeedback(message)
) : FormFeedback(message) {
val failure = true
}

data class Success(override val message: String) : FormFeedback(message)
data class Success(override val message: String) : FormFeedback(message) {
val success = true
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@file:JsExport

package pimonitor.authentication.signup

import bitframe.presenters.fields.ButtonInputField
import bitframe.presenters.fields.TextInputField
import kotlin.js.JsExport

@JsExport
data class IndividualFormFields(
val title: String = "Enter your personal information",
val name: TextInputField = TextInputField(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@file:JsExport

package pimonitor.authentication.signup

import kotlin.js.JsExport

@JsExport
sealed class SignUpState {

data class Loading(val message: String) : SignUpState()
Expand Down