(user.demographicInformation?.timezone || moment.tz.guess());
+ const [isPreferredTopicsOpen, setIsPreferredTopicsOpen] = useState(false);
+
const {groups} = useGroups();
const {users} = useUsers();
@@ -156,6 +163,7 @@ function UserProfile({user, mutateUser}: Props) {
profilePicture,
desiredLevels,
preferredGender,
+ preferredTopics,
demographicInformation: {
phone,
country,
@@ -350,18 +358,41 @@ function UserProfile({user, mutateUser}: Props) {
{preferredGender && ["developer", "student"].includes(user.type) && (
<>
-
-
-
+
+
+
+
+
+
+
+
+
+
+ setIsPreferredTopicsOpen(false)}
+ selectTopics={setPreferredTopics}
+ initialTopics={preferredTopics || []}
+ />
>
)}
diff --git a/src/resources/topics.ts b/src/resources/topics.ts
new file mode 100644
index 00000000..424dbbbf
--- /dev/null
+++ b/src/resources/topics.ts
@@ -0,0 +1,55 @@
+const topics = [
+ "Education",
+ "Technology",
+ "Environment",
+ "Health and Fitness",
+ "Globalization",
+ "Engineering",
+ "Work and Careers",
+ "Travel and Tourism",
+ "Culture and Traditions",
+ "Social Issues",
+ "Arts and Entertainment",
+ "Climate Change",
+ "Social Media",
+ "Sustainable Development",
+ "Health Care",
+ "Immigration",
+ "Artificial Intelligence",
+ "Consumerism",
+ "Online Shopping",
+ "Energy",
+ "Oil and Gas",
+ "Poverty and Inequality",
+ "Cultural Diversity",
+ "Democracy and Governance",
+ "Mental Health",
+ "Ethics and Morality",
+ "Population Growth",
+ "Science and Innovation",
+ "Poverty Alleviation",
+ "Cybersecurity and Privacy",
+ "Human Rights",
+ "Social Justice",
+ "Food and Agriculture",
+ "Cyberbullying and Online Safety",
+ "Linguistic Diversity",
+ "Urbanization",
+ "Artificial Intelligence in Education",
+ "Youth Empowerment",
+ "Disaster Management",
+ "Mental Health Stigma",
+ "Internet Censorship",
+ "Sustainable Fashion",
+ "Indigenous Rights",
+ "Water Scarcity",
+ "Social Entrepreneurship",
+ "Privacy in the Digital Age",
+ "Sustainable Transportation",
+ "Gender Equality",
+ "Automation and Job Displacement",
+ "Digital Divide",
+ "Education Inequality",
+];
+
+export default topics;