File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const Terminal = () => {
7
7
8
8
// Automatically select the end of the input as the custom
9
9
// cursor only works at the end of the input.
10
- const inputRef : any = useRef ( null ) ;
10
+ const inputRef = useRef < HTMLInputElement > ( null ) ;
11
11
const setInputEnd = ( ) => {
12
12
if ( inputRef . current ) {
13
13
const len = inputRef . current . value . length ;
@@ -32,10 +32,12 @@ const Terminal = () => {
32
32
if ( value . toLowerCase ( ) === "~"
33
33
|| value . toLowerCase ( ) === "cd"
34
34
|| value . toLowerCase ( ) === "cd ~"
35
+ || value . toLowerCase ( ) === "cd .."
35
36
) {
36
37
goToPage ( "/" ) ;
37
38
} else if ( value . toLowerCase ( ) === "cd about"
38
39
|| value . toLowerCase ( ) === "cd about us"
40
+ || value . toLowerCase ( ) === "cd about_us"
39
41
) {
40
42
goToPage ( "/about" ) ;
41
43
} else if ( value . toLowerCase ( ) === "cd events"
@@ -53,6 +55,7 @@ const Terminal = () => {
53
55
} else if ( value . toLowerCase ( ) === "cd contact"
54
56
|| value . toLowerCase ( ) === "cd contacts"
55
57
|| value . toLowerCase ( ) === "cd contact us"
58
+ || value . toLowerCase ( ) === "cd contact_us"
56
59
) {
57
60
goToPage ( "/contact-us" ) ;
58
61
}
You can’t perform that action at this time.
0 commit comments