Skip to content

Commit af38d3c

Browse files
committed
fixed redirection
1 parent 8964ea9 commit af38d3c

File tree

5 files changed

+334
-508
lines changed

5 files changed

+334
-508
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"react-phone-input-2": "^2.15.1",
5858
"react-player": "^2.16.0",
5959
"react-resize-detector": "^12.0.2",
60-
"react-router-dom": "^7.2.0",
60+
"react-router": "^7.2.0",
6161
"react-tiny-link": "^3.6.1",
6262
"react-viewer": "^3.2.2",
6363
"stream-browserify": "^3.0.0",

src/components/UI/Form/Input/Input.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export interface InputProps {
2727
inputLabel?: string | null;
2828
darkMode?: boolean;
2929
inputLabelSubtext?: any;
30+
autoComplete?: string;
3031
}
3132

3233
export const Input = ({ textArea = false, disabled = false, inputLabel = null, ...props }: InputProps) => {
@@ -47,6 +48,7 @@ export const Input = ({ textArea = false, disabled = false, inputLabel = null, .
4748
onChange,
4849
darkMode,
4950
inputLabelSubtext,
51+
autoComplete = 'off',
5052
} = props;
5153

5254
let fieldType = type;
@@ -132,6 +134,7 @@ export const Input = ({ textArea = false, disabled = false, inputLabel = null, .
132134
}}
133135
endAdornment={endAdornment || fieldEndAdorment}
134136
notched={false}
137+
autoComplete={autoComplete}
135138
/>
136139
{form && form.errors[field.name] && form.touched[field.name] ? (
137140
<FormHelperText className={styles.DangerText}>{form.errors[field.name]}</FormHelperText>

src/containers/Auth/Login/Login.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export const Login = () => {
9898
name: 'password',
9999
type: 'password',
100100
placeholder: t('Password'),
101+
autoComplete: 'on',
101102
},
102103
];
103104

vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
4747
esbuildOptions: esbuildOptions,
4848
},
4949
server: {
50-
open: true,
50+
host: 'glific.test',
5151
port: 3000,
52+
open: 'https://glific.test:3000/',
5253
https: {
5354
key: fs.readFileSync('../glific/priv/cert/glific.test+1-key.pem'),
5455
cert: fs.readFileSync('../glific/priv/cert/glific.test+1.pem'),

0 commit comments

Comments
 (0)