Skip to content

Commit

Permalink
fixed redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Mar 4, 2025
1 parent 8964ea9 commit af38d3c
Show file tree
Hide file tree
Showing 5 changed files with 334 additions and 508 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"react-phone-input-2": "^2.15.1",
"react-player": "^2.16.0",
"react-resize-detector": "^12.0.2",
"react-router-dom": "^7.2.0",
"react-router": "^7.2.0",
"react-tiny-link": "^3.6.1",
"react-viewer": "^3.2.2",
"stream-browserify": "^3.0.0",
Expand Down
3 changes: 3 additions & 0 deletions src/components/UI/Form/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface InputProps {
inputLabel?: string | null;
darkMode?: boolean;
inputLabelSubtext?: any;
autoComplete?: string;
}

export const Input = ({ textArea = false, disabled = false, inputLabel = null, ...props }: InputProps) => {
Expand All @@ -47,6 +48,7 @@ export const Input = ({ textArea = false, disabled = false, inputLabel = null, .
onChange,
darkMode,
inputLabelSubtext,
autoComplete = 'off',
} = props;

let fieldType = type;
Expand Down Expand Up @@ -132,6 +134,7 @@ export const Input = ({ textArea = false, disabled = false, inputLabel = null, .
}}
endAdornment={endAdornment || fieldEndAdorment}
notched={false}
autoComplete={autoComplete}
/>
{form && form.errors[field.name] && form.touched[field.name] ? (
<FormHelperText className={styles.DangerText}>{form.errors[field.name]}</FormHelperText>
Expand Down
1 change: 1 addition & 0 deletions src/containers/Auth/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const Login = () => {
name: 'password',
type: 'password',
placeholder: t('Password'),
autoComplete: 'on',
},
];

Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
esbuildOptions: esbuildOptions,
},
server: {
open: true,
host: 'glific.test',
port: 3000,
open: 'https://glific.test:3000/',
https: {
key: fs.readFileSync('../glific/priv/cert/glific.test+1-key.pem'),
cert: fs.readFileSync('../glific/priv/cert/glific.test+1.pem'),
Expand Down
Loading

0 comments on commit af38d3c

Please sign in to comment.