Skip to content

Commit df2872b

Browse files
committed
initial state good
1 parent 7ca07a1 commit df2872b

12 files changed

Lines changed: 158 additions & 96 deletions

my-app/src/model.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export const model = {
1616
applyTranscriptFilter: true,
1717
eligibility: "weak", //the possible values for the string are: "weak"/"moderate"/"strong"
1818
applyLevelFilter: true,
19-
level: [], //the possible values for the array are: "PREPARATORY", "BASIC", "ADVANCED", "RESEARCH"
19+
level: ["PREPARATORY", "BASIC", "ADVANCED", "RESEARCH"], //the possible values for the array are: "PREPARATORY", "BASIC", "ADVANCED", "RESEARCH"
2020
applyLanguageFilter: true,
2121
language: "none", //the possible values for the string are: "none"/"english"/"swedish"/"both"
2222
applyLocationFilter:true,
2323
location: [], //the possible values for the array are: 'KTH Campus', 'KTH Kista', 'AlbaNova', 'KTH Flemingsberg', 'KTH Solna', 'KTH Södertälje', 'Handelshögskolan', 'KI Solna', 'Stockholms universitet', 'KONSTFACK'
2424
applyCreditsFilter:true,
2525
creditMin: 0,
2626
creditMax: 45,
27-
applyDepartmentFilter:false,
27+
applyDepartmentFilter: true,
2828
department: []
2929
},
3030

@@ -138,6 +138,8 @@ export const model = {
138138
},
139139
setApplyLevelFilter(levelFilterState) {
140140
this.filterOptions.applyLevelFilter = levelFilterState;
141+
142+
console.log("model -",this.filterOptions.level);
141143
},
142144
setApplyLanguageFilter(languageFilterState) {
143145
this.filterOptions.applyLanguageFilter = languageFilterState;

my-app/src/pages/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { model } from '/src/model.js';
1010
function MainAppLayout({ model }) {
1111
return (
1212
<div className="flex h-screen w-screen overflow-hidden">
13-
<FilterPresenter model={model} />
1413
<div className="flex-auto w-40% h-full bg-gradient-to-t from-[#4f3646] to-[#6747c0]">
1514
<SidebarPresenter model={model} />
1615
</div>
@@ -21,6 +20,7 @@ function MainAppLayout({ model }) {
2120
<div className="flex-auto border bg-[#121212] relative">
2221
<ListViewPresenter model={model} />
2322
</div>
23+
<FilterPresenter model={model} />
2424
</div>
2525
</div>
2626
);

0 commit comments

Comments
 (0)