diff options
Diffstat (limited to 'wallee-c2ec/app/src/main/java/ch/bfh/habej2/wallee_c2ec/ExchangeActivity.kt')
-rw-r--r-- | wallee-c2ec/app/src/main/java/ch/bfh/habej2/wallee_c2ec/ExchangeActivity.kt | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/wallee-c2ec/app/src/main/java/ch/bfh/habej2/wallee_c2ec/ExchangeActivity.kt b/wallee-c2ec/app/src/main/java/ch/bfh/habej2/wallee_c2ec/ExchangeActivity.kt deleted file mode 100644 index 8bdc310..0000000 --- a/wallee-c2ec/app/src/main/java/ch/bfh/habej2/wallee_c2ec/ExchangeActivity.kt +++ /dev/null @@ -1,56 +0,0 @@ -package ch.bfh.habej2.wallee_c2ec - -import android.content.Intent -import android.os.Bundle -import androidx.activity.ComponentActivity -import androidx.activity.compose.setContent -import androidx.appcompat.app.AppCompatActivity -import androidx.compose.foundation.layout.Column -import androidx.compose.foundation.layout.fillMaxSize -import androidx.compose.material3.Button -import androidx.compose.material3.MaterialTheme -import androidx.compose.material3.Surface -import androidx.compose.material3.Text -import androidx.compose.ui.Alignment -import androidx.compose.ui.Modifier -import androidx.compose.ui.platform.LocalContext -import ch.bfh.habej2.wallee_c2ec.config.EXCHANGES -import ch.bfh.habej2.wallee_c2ec.ui.theme.Walleec2ecTheme - -class ExchangeActivity : AppCompatActivity() { - - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContent { - Walleec2ecTheme { - // A surface container using the 'background' color from the theme - Surface( - modifier = Modifier.fillMaxSize(), - color = MaterialTheme.colorScheme.background - ) { - - Column( - horizontalAlignment = Alignment.CenterHorizontally - ) { - - Text(text = "Choose the exchange to withdraw from") - - // TODO let user select exchanges from config here - // config must contain display name, credentials (generated by cli) - // and the base url of the c2ec bank-integration api - EXCHANGES.forEach { Text(text = it.displayName) } - - val ctx = LocalContext.current - Button(onClick = { ctx.startActivity(Intent(this@ExchangeActivity.parent, WithdrawalCreationActivity::class.java)) }) { - Text(text = "withdraw") - } - - Button(onClick = { finish() }) { - Text(text = "back") - } - } - } - } - } - } -}
\ No newline at end of file |