@@ -11,24 +11,28 @@ import { Occupation } from '../../types'
1111const OCCUPATIONS : Occupation [ ] = [
1212 {
1313 title : 'Front-End Engineer' ,
14+ value : 'frontend' ,
1415 icon : FaPaintBrush ,
1516 sources : [ 'devto' , 'github' , 'medium' , 'hashnode' ] ,
1617 tags : [ 'frontend' , 'javascript' , 'typescript' , 'css' , 'react' , 'vue' , 'angular' ] ,
1718 } ,
1819 {
1920 title : 'Back-End Engineer' ,
21+ value : 'backend' ,
2022 icon : BsFillGearFill ,
2123 sources : [ 'devto' , 'github' , 'medium' , 'hashnode' ] ,
2224 tags : [ 'backend' , 'go' , 'php' , 'ruby' , 'rust' , 'r' ] ,
2325 } ,
2426 {
2527 title : 'Full Stack Engineer' ,
2628 icon : RiDeviceFill ,
29+ value : 'fullstack' ,
2730 sources : [ 'devto' , 'github' , 'medium' , 'hashnode' ] ,
2831 tags : [ 'javascript' , 'typescript' , 'php' , 'ruby' , 'rust' ] ,
2932 } ,
3033 {
3134 title : 'Mobile' ,
35+ value : 'mobile' ,
3236 icon : AiFillMobile ,
3337 sources : [ 'reddit' , 'github' , 'medium' , 'hashnode' ] ,
3438 tags : [
@@ -45,30 +49,35 @@ const OCCUPATIONS: Occupation[] = [
4549 } ,
4650 {
4751 title : 'Devops Engineer' ,
52+ value : 'devops' ,
4853 icon : FaServer ,
4954 sources : [ 'freecodecamp' , 'github' , 'reddit' , 'devto' ] ,
5055 tags : [ 'devops' , 'kubernetes' , 'docker' , 'bash' ] ,
5156 } ,
5257 {
5358 title : 'Data Engineer' ,
59+ value : 'data' ,
5460 icon : FaDatabase ,
5561 sources : [ 'freecodecamp' , 'github' , 'reddit' , 'devto' ] ,
5662 tags : [ 'data science' , 'python' , 'artificial intelligence' , 'machine learning' ] ,
5763 } ,
5864 {
5965 title : 'Security Engineer' ,
66+ value : 'security' ,
6067 icon : AiFillSecurityScan ,
6168 sources : [ 'freecodecamp' , 'github' , 'reddit' , 'devto' ] ,
6269 tags : [ 'security' , 'cpp' , 'bash' , 'python' ] ,
6370 } ,
6471 {
6572 title : 'ML Engineer' ,
73+ value : 'ai' ,
6674 icon : FaRobot ,
6775 sources : [ 'github' , 'freecodecamp' , 'hackernews' , 'devto' ] ,
6876 tags : [ 'machine learning' , 'artificial intelligence' , 'python' ] ,
6977 } ,
7078 {
7179 title : 'Other' ,
80+ value : 'other' ,
7281 icon : TbDots ,
7382 sources : [ 'hackernews' , 'github' , 'producthunt' , 'devto' ] ,
7483 tags : [ 'webdev' , 'mobile' ] ,
@@ -84,7 +93,7 @@ export const HelloTab = () => {
8493 const onStartClicked = ( ) => {
8594 const selectedOccupation = OCCUPATIONS . find ( ( occ ) => occ . title === occupation )
8695 if ( selectedOccupation ) {
87- setOccupation ( selectedOccupation . title )
96+ setOccupation ( selectedOccupation . value )
8897 setCards (
8998 selectedOccupation . sources . map ( ( source , index ) => ( {
9099 id : index ,
0 commit comments