temp: pc change

This commit is contained in:
alphafetus committed 2025-06-24 19:01:20 -04:00
1 parent 32937ae045
commit 127cf17c90
13 files changed
+176 -10

No files matched your search

+1 -7
View File
@@ -1,17 +1,11 @@
use crate::components::{ActionButton, OutlinedTextField};
use crate::common::StudentInfo;
use leptos::leptos_dom::logging::console_log;
use leptos::prelude::*;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use aws_sdk_dynamodb::{error::ProvideErrorMetadata, types::AttributeValue, Client};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct StudentInfo {
first_name: String,
last_name: String,
}
#[server(GetSubmission, endpoint = "/get-submission")]
pub async fn get_submission(id: String) -> Result<StudentInfo, ServerFnError> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;