File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
frontends/web/src/routes/settings/components Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { useTranslation } from 'react-i18next ' ;
17
+ import { useNavigate } from 'react-router-dom ' ;
18
18
import { ChevronLeftDark } from '@/components/icon' ;
19
- import { BackButton } from '@/components/backbutton/backbutton' ;
20
19
import styles from './mobile-header.module.css' ;
21
20
22
21
type TProps = {
@@ -25,15 +24,14 @@ type TProps = {
25
24
}
26
25
27
26
export const MobileHeader = ( { title, withGuide = false } : TProps ) => {
28
- const { t } = useTranslation ( ) ;
29
-
27
+ const navigate = useNavigate ( ) ;
28
+ const handleClick = ( ) => {
29
+ //goes to the 'general settings' page
30
+ navigate ( '/settings' ) ;
31
+ } ;
30
32
return (
31
33
< div className = { `${ styles . container } ${ withGuide ? `${ styles . withGuide } ` : '' } ` } >
32
- < BackButton className = { styles . backButton } >
33
- < ChevronLeftDark />
34
- { ' ' }
35
- < span > { t ( 'button.back' ) } </ span >
36
- </ BackButton >
34
+ < button onClick = { handleClick } className = { styles . backButton } > < ChevronLeftDark /> </ button >
37
35
< h1 className = { styles . headerText } > { title } </ h1 >
38
36
</ div >
39
37
) ;
You can’t perform that action at this time.
0 commit comments