Skip to content

Commit 35752f7

Browse files
committed
ci: Give explicit names to default exports
1 parent 193dcda commit 35752f7

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

website/src/assets/College/collegeLabContent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import EssayContainer from "../../components/posts/CollegeAdmissions/essay/Essay
55
import WomenEnrollmentContainer from "../../components/posts/CollegeAdmissions/enrollmentGraph/WomenEnrollmentContainer.js";
66
import { MatchingGame } from "./MatchingGame.js";
77

8-
export default [
8+
const content = [
99
{
1010
post: {
1111
profilePic: teachLogo,
@@ -227,3 +227,5 @@ export default [
227227
},
228228
},
229229
];
230+
231+
export default content;

website/src/assets/Facebook/adContent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import preschool from "./ads/preschool.svg";
1010
import janitor from "./ads/janitor.svg";
1111
import retail from "./ads/retail.svg";
1212

13-
export default {
13+
const content = {
1414
Lumber: {
1515
img: lumber,
1616
header: "Strong Lumberjacks Needed!",
@@ -122,3 +122,5 @@ export default {
122122
pay: "$15-$17 an hour",
123123
},
124124
};
125+
126+
export default content;

website/src/assets/Facebook/facebookLabContent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import facebookAds from "./personalizedAds.svg";
1515
import anime from "./animationpic.svg";
1616
import teachLogo from "../../assets/teachla-logo.svg";
1717

18-
export default [
18+
const content = [
1919
{
2020
post: {
2121
profilePic: facebookLogo,
@@ -537,3 +537,5 @@ export default [
537537
},
538538
},
539539
];
540+
541+
export default content;

website/src/components/posts/Facebook/conclusion/conclusion.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import "../../../../assets/Facebook/facebookLabContent.css";
33
import dial from "../../../../assets/dial.jpg";
44
import looking from "../../../../assets/looking.jpg";
55
import whyad from "../../../../assets/whyamiseeingthisad.png";
6-
export default [
6+
7+
const content = [
78
{
89
card: {
910
head: "1. Lessening the focus on targeted advertisements at the slight cost of revenue loss",
@@ -59,3 +60,5 @@ export default [
5960
},
6061
},
6162
];
63+
64+
export default content;

website/src/components/posts/Facebook/socialMedia/initialAds.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import placeholderThumbnail from "../../../../assets/placeholderThumbnail.png";
22
import "./socialMedia.css";
3+
34
const adData = [
45
[0.27966767, 0.10170184, 0.04216069, 0.01245083], //lumber
56
[0.13921071, 0.09911504, 0.09458128, 0.05468602], //AI
@@ -13,6 +14,7 @@ const adData = [
1314
[0.04034156, 0.06471523, 0.09940547, 0.12949953], // Janitor
1415
[0.03507962, 0.05173587, 0.11007304, 0.13183236], // Supermarket
1516
];
17+
1618
//adPercentages represented this way: index 0 is white male, index 1 is black male, index 2 is white female, index 3 is black female
1719
const adNames = [
1820
"Lumber",
@@ -27,7 +29,11 @@ const adNames = [
2729
"Janitor",
2830
"Retail",
2931
];
32+
3033
let initialAdFrequencies = [];
34+
35+
/*this is the setup for all the ads initially for the histogram, x/y for the axes of data,
36+
and thumbnail for the picture*/
3137
for (let i = 0; i < 11; i++) {
3238
initialAdFrequencies[i] = {
3339
x: adNames[i],
@@ -36,8 +42,9 @@ for (let i = 0; i < 11; i++) {
3642
adPercentages: adData[i],
3743
};
3844
}
39-
/*this is the setup for all the ads initially for the histogram, x/y for the axes of data,
40-
and thumbnail for the picture*/
41-
export default {
45+
46+
const ads = {
4247
adList: initialAdFrequencies,
4348
};
49+
50+
export default ads;

0 commit comments

Comments
 (0)