Skip to content

Commit

Permalink
🔧 default base wages
Browse files Browse the repository at this point in the history
  • Loading branch information
ad2ien committed Oct 20, 2023
1 parent 563649f commit 633d6dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mod slider_component;
mod wages_param;

const PARAMETERS_MEANING: i8 = 10;
const DEFAULT_BASE_WAGES: i32 = 700;
const CRITERIAS_URL: &str = "http://localhost:1984/criterias";
const DATA_URL: &str = "http://localhost:1984/params";

Expand All @@ -28,7 +29,7 @@ fn App() -> Html {

let parameter_state = use_state(|| [].to_vec());
let criterias_state = use_state(|| [].to_vec());
let base_wages_state = use_state(|| 1000);
let base_wages_state = use_state(|| DEFAULT_BASE_WAGES);
let input_base_wages_state = (*base_wages_state).clone();
let result_state = use_state(|| 0.0);
let jobs_box_state: UseStateHandle<Vec<String>> = use_state(|| [].to_vec());
Expand Down

0 comments on commit 633d6dd

Please sign in to comment.