feat: create scholarship list skeleton
Next up is linking the scholarship IDs that are contained in the link parameters to the form that's displayed upon clicking "Edit".
This commit is contained in:
1 parent
620cc514d3
commit
a0049d4797
8 files changed
+268
-38
No files matched your search
@@ -2,26 +2,20 @@ use leptos::either::Either;
|
||||
use super::home_page::get_submission;
|
||||
use super::{UnauthenticatedPage};
|
||||
use crate::common::{
|
||||
ComparisonData, ExpandableInfo, UserClaims, ValueType,
|
||||
ComparisonData, ExpandableInfo, ValueType,
|
||||
};
|
||||
use crate::components::{ActionButton, Loading, Panel, Row};
|
||||
use leptos::leptos_dom::logging::console_log;
|
||||
use leptos::logging::log;
|
||||
use leptos::prelude::*;
|
||||
use leptos_oidc::{Algorithm, AuthLoaded, AuthSignal, Authenticated};
|
||||
use leptos_oidc::{AuthLoaded, Authenticated};
|
||||
use crate::pages::utils::get_user_claims;
|
||||
use super::api::{get_comparison_info, get_all_scholarship_info};
|
||||
|
||||
#[component]
|
||||
pub fn ComparisonTestPage() -> impl IntoView {
|
||||
let result_msg = RwSignal::new("Found submission, waiting for input.".to_string());
|
||||
let auth = use_context::<AuthSignal>().expect("Couldn't find user information.");
|
||||
let user_claims = Signal::derive(move || {
|
||||
auth.with(|auth| {
|
||||
auth.authenticated().and_then(|data| {
|
||||
data.decoded_access_token::<UserClaims>(Algorithm::RS256, &["account"])
|
||||
})
|
||||
})
|
||||
});
|
||||
let user_claims = get_user_claims();
|
||||
|
||||
// Note that the value passed in MUST be equatable.
|
||||
// We get/unwrap the value repeatedly until we get a simple string value, then clone it so that
|
||||
|
||||
Reference in new issue
Block a user