Skip to content
Snippets Groups Projects
Commit 8505c3e5 authored by danieldeng2's avatar danieldeng2
Browse files

Change year to 2021

parent 18432481
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ class ModuleResources extends React.Component<ResourcesProps, ResourceState> { ...@@ -53,6 +53,7 @@ class ModuleResources extends React.Component<ResourcesProps, ResourceState> {
let resourceArr: Resource[] = []; let resourceArr: Resource[] = [];
data.json().then((json) => { data.json().then((json) => {
console.log(`data: ${data}`);
for (const key in json) { for (const key in json) {
let resource = json[key]; let resource = json[key];
resourceArr.push({ resourceArr.push({
......
...@@ -82,7 +82,7 @@ const StandardView: React.FC<StandardViewProps> = ({ ...@@ -82,7 +82,7 @@ const StandardView: React.FC<StandardViewProps> = ({
path="/modules/:id/resources/:scope?" path="/modules/:id/resources/:scope?"
render={(props) => ( render={(props) => (
<ModuleResources <ModuleResources
year="1819" year="2021"
moduleID={props.match.params.id} moduleID={props.match.params.id}
scope={props.match.params.scope} scope={props.match.params.scope}
/> />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment