@@ -6,12 +6,12 @@ import { selectAllProjects } from '@/src/reduxStore/states/project';
66import { ModalButton , ModalEnum } from '@/src/types/shared/modal' ;
77import { closeModal , openModal } from '@/src/reduxStore/states/modal' ;
88import Modal from '../shared/modal/Modal' ;
9- import { IconAlertTriangle , IconArrowDown , IconFishHook , IconMessageCircle , IconNews , IconQuestionMark , IconScreenshot } from '@tabler/icons-react' ;
109import { setSearchGroupsStore } from '@/src/reduxStore/states/pages/data-browser' ;
1110import { selectProjectIdSampleProject , setProjectIdSampleProject } from '@/src/reduxStore/states/tmp' ;
1211import { createSampleProject } from '@/src/services/base/project' ;
1312import KernButton from '@/submodules/react-components/components/kern-button/KernButton' ;
1413import { ChevronDownIcon } from '@heroicons/react/20/solid' ;
14+ import { MemoIconAlertTriangle , MemoIconFishHook , MemoIconMessageCircle , MemoIconNews , MemoIconQuestionMark , MemoIconScreenshot } from '@/submodules/react-components/components/kern-icons/icons' ;
1515
1616const ACCEPT_BUTTON = { buttonCaption : "Create" , closeAfterClick : false , useButton : true , disabled : true } ;
1717
@@ -72,6 +72,10 @@ export default function SampleProjectsDropdown() {
7272 }
7373 } , [ ] ) ;
7474
75+ const furtherSampleProjects = useCallback ( ( ) => {
76+ window . open ( "https://github.com/code-kern-ai/refinery-sample-projects" , "_blank" )
77+ } , [ ] ) ;
78+
7579 return (
7680 < Menu as = "div" className = "relative inline-block text-left" >
7781 < div >
@@ -107,7 +111,7 @@ export default function SampleProjectsDropdown() {
107111 importSampleProject ( "Clickbait" , "Clickbait" ) ;
108112 } } >
109113 < div className = "flex flex-row items-center" >
110- < IconFishHook className = "h-5 w-5 inline-block" />
114+ < MemoIconFishHook className = "h-5 w-5 inline-block" />
111115 < span className = "ml-2" > Clickbait</ span >
112116 </ div >
113117 < div className = "mt-2" > Binary classification for detecting nudging articles.</ div >
@@ -133,7 +137,7 @@ export default function SampleProjectsDropdown() {
133137 importSampleProject ( "Conversational AI" , "Conversational AI" ) ;
134138 } } >
135139 < div className = "flex flex-row items-center" >
136- < IconMessageCircle className = "h-5 w-5 inline-block" />
140+ < MemoIconMessageCircle className = "h-5 w-5 inline-block" />
137141 < span className = "ml-2" > Conversational AI</ span >
138142 </ div >
139143 < div className = "mt-2" > Detecting intent within conversational lines.</ div >
@@ -159,7 +163,7 @@ export default function SampleProjectsDropdown() {
159163 importSampleProject ( "AG News" , "AG News" ) ;
160164 } } >
161165 < div className = "flex flex-row items-center" >
162- < IconNews className = "h-5 w-5 inline-block" />
166+ < MemoIconNews className = "h-5 w-5 inline-block" />
163167 < span className = "ml-2" > AG News</ span >
164168 </ div >
165169 < div className = "mt-2" > Modelling topics of headline news.</ div >
@@ -185,7 +189,7 @@ export default function SampleProjectsDropdown() {
185189 importSampleProject ( "Global Guard [References]" , "Global Guard [References]" ) ;
186190 } } >
187191 < div className = "flex flex-row items-center" >
188- < IconScreenshot className = "h-5 w-5 inline-block" />
192+ < MemoIconScreenshot className = "h-5 w-5 inline-block" />
189193 < span className = "ml-2" > DEV Global Guard [References]</ span >
190194 </ div >
191195 < div className = "mt-2" > References right after the wizard went through.</ div >
@@ -200,7 +204,7 @@ export default function SampleProjectsDropdown() {
200204 importSampleProject ( "Global Guard [Questions]" , "Global Guard [Questions]" ) ;
201205 } } >
202206 < div className = "flex flex-row items-center" >
203- < IconQuestionMark className = "h-5 w-5 inline-block" />
207+ < MemoIconQuestionMark className = "h-5 w-5 inline-block" />
204208 < span className = "ml-2" > DEV Global Guard [Questions]</ span >
205209 </ div >
206210 < div className = "mt-2" > Questions right after the wizard went through.</ div >
@@ -211,7 +215,7 @@ export default function SampleProjectsDropdown() {
211215 { ( { active } ) => (
212216 < a key = "sample-project-6"
213217 className = { `opacity-100 cursor-pointer text-gray-900 block px-3 py-2 text-sm ${ active ? "bg-kernindigo text-white" : "" } ` }
214- onClick = { ( ) => window . open ( "https://github.com/code-kern-ai/refinery-sample-projects" , "_blank" ) } >
218+ onClick = { furtherSampleProjects } >
215219 < span > Further sample projects</ span >
216220 </ a >
217221 ) }
@@ -235,7 +239,7 @@ export default function SampleProjectsDropdown() {
235239 </ div >
236240 { projectNameExists && ( < div className = "text-red-700 text-xs mt-2 text-left" > Project title exists</ div > ) }
237241 < div className = "flex flex-row mt-2" >
238- < IconAlertTriangle className = "h-5 w-5 text-yellow-700" />
242+ < MemoIconAlertTriangle className = "h-5 w-5 text-yellow-700" />
239243 < label className = "text-yellow-700 text-xs italic ml-2 text-left" > The first sample project of a specific type can use the
240244 default name, but after the name is taken, the user needs a custom name.</ label >
241245 </ div >
0 commit comments