added hscode link

This commit is contained in:
Malini 2025-11-25 12:58:40 +05:30
parent 89c5243b2d
commit a966ca77f4
6 changed files with 24 additions and 4 deletions

View File

@ -18,6 +18,7 @@ const trashActiveSrc = '/assets/images/Trash - active.svg';
const searchIcon = '/assets/images/material-symbols_search-rounded.svg'; const searchIcon = '/assets/images/material-symbols_search-rounded.svg';
const uae_currency = '/assets/images/UAE_Dirham_Symbol.svg'; const uae_currency = '/assets/images/UAE_Dirham_Symbol.svg';
const Input = ({ placeholder = '', type = 'text', value = '', onChange = () => {}, required = false, error = false }) => { const Input = ({ placeholder = '', type = 'text', value = '', onChange = () => {}, required = false, error = false }) => {
const [isFocused, setIsFocused] = React.useState(false); const [isFocused, setIsFocused] = React.useState(false);
@ -1219,7 +1220,17 @@ const location = useLocation();
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<h2 className="text-lg font-semibold text-gray-900">Products</h2> <div className="flex items-center">
<h2 className="text-lg font-semibold text-gray-900">Products</h2>
<a
href="/assets/images/HS-Code UAE (002).pdf"
target="_blank"
rel="noopener noreferrer"
className="ml-3 mt-1 text-sm text-black-600 hover:underline"
>
Please click here to view the list of HS codes
</a>
</div>
</div> </div>
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<button <button

View File

@ -861,6 +861,7 @@ const CompanyProfile = () => {
type="password" type="password"
showToggle={true} showToggle={true}
className={passwordError || passwordReuseError ? 'border-red-500' : ''} className={passwordError || passwordReuseError ? 'border-red-500' : ''}
autoComplete="new-password"
required required
/> />
{passwordError && <p className="text-xs text-[#B91C1C]">{passwordError}</p>} {passwordError && <p className="text-xs text-[#B91C1C]">{passwordError}</p>}
@ -876,6 +877,7 @@ const CompanyProfile = () => {
type="password" type="password"
showToggle={true} showToggle={true}
className={confirmError ? 'border-red-500' : ''} className={confirmError ? 'border-red-500' : ''}
autoComplete="new-password"
required required
/> />
{confirmError && <p className="text-xs text-[#B91C1C]">{confirmError}</p>} {confirmError && <p className="text-xs text-[#B91C1C]">{confirmError}</p>}

View File

@ -179,7 +179,7 @@ if (newPassword !== confirmPassword) {
</p> </p>
</div> </div>
<form onSubmit={handleSubmit} className="px-7 py-8 space-y-4"> <form onSubmit={handleSubmit} className="px-7 py-8 space-y-4" autoComplete="off">
{error && ( {error && (
<div className="text-sm text-red-700 bg-red-50 border border-red-200 rounded px-3 py-2"> <div className="text-sm text-red-700 bg-red-50 border border-red-200 rounded px-3 py-2">
{error} {error}
@ -199,6 +199,7 @@ if (newPassword !== confirmPassword) {
type="email" type="email"
value={registeredEmail} value={registeredEmail}
disabled disabled
autoComplete="username"
className="block w-full h-10 rounded-md border-2 border-gray-300 px-4 text-sm bg-gray-50 cursor-not-allowed" className="block w-full h-10 rounded-md border-2 border-gray-300 px-4 text-sm bg-gray-50 cursor-not-allowed"
/> />
</div> </div>
@ -227,6 +228,7 @@ if (newPassword !== confirmPassword) {
toggleShow={() => setShowOtp((v) => !v)} toggleShow={() => setShowOtp((v) => !v)}
placeholder="Enter 6-digit code" placeholder="Enter 6-digit code"
error={otpError} error={otpError}
autoComplete="one-time-code"
/> />
<ToggleableInput <ToggleableInput
@ -239,6 +241,7 @@ if (newPassword !== confirmPassword) {
const passwordError = validatePassword(value); const passwordError = validatePassword(value);
setNewPasswordError(passwordError); setNewPasswordError(passwordError);
}} }}
autoComplete="new-password"
show={showNewPassword} show={showNewPassword}
toggleShow={() => setShowNewPassword((v) => !v)} toggleShow={() => setShowNewPassword((v) => !v)}
placeholder="Enter new password" placeholder="Enter new password"
@ -254,6 +257,7 @@ if (newPassword !== confirmPassword) {
setConfirmPassword(value); setConfirmPassword(value);
if (newPassword === value) setConfirmPasswordError(""); if (newPassword === value) setConfirmPasswordError("");
}} }}
autoComplete="new-password"
show={showConfirmPassword} show={showConfirmPassword}
toggleShow={() => setShowConfirmPassword((v) => !v)} toggleShow={() => setShowConfirmPassword((v) => !v)}
placeholder="Re-enter new password" placeholder="Re-enter new password"

View File

@ -322,7 +322,7 @@ const Login = () => {
</h1> </h1>
</div> </div>
<form onSubmit={submit} className="px-7 py-8 space-y-4"> <form onSubmit={submit} className="px-7 py-8 space-y-4" autoComplete="off">
{isLocked && remainingTime > 0 && ( {isLocked && remainingTime > 0 && (
<div className="bg-red-50 border-l-4 border-red-500 p-4 rounded"> <div className="bg-red-50 border-l-4 border-red-500 p-4 rounded">
<div className="flex items-start gap-3"> <div className="flex items-start gap-3">
@ -366,6 +366,7 @@ const Login = () => {
}} }}
placeholder="name@company.com" placeholder="name@company.com"
disabled={isLocked} disabled={isLocked}
autoComplete="username"
className={`block w-full h-10 rounded-md border-2 px-4 text-sm focus:ring-0 ${ className={`block w-full h-10 rounded-md border-2 px-4 text-sm focus:ring-0 ${
emailError emailError
? 'border-red-500 bg-red-50' ? 'border-red-500 bg-red-50'
@ -390,6 +391,7 @@ const Login = () => {
if (passwordError) setPasswordError(''); if (passwordError) setPasswordError('');
}} }}
disabled={isLocked} disabled={isLocked}
autoComplete="current-password"
className={`block w-full h-10 rounded-md border-2 px-4 pr-11 text-sm focus:ring-0 ${ className={`block w-full h-10 rounded-md border-2 px-4 pr-11 text-sm focus:ring-0 ${
passwordError passwordError
? 'border-red-500 bg-red-50' ? 'border-red-500 bg-red-50'

View File

@ -224,7 +224,7 @@ const PublicContactForm = () => {
</div> </div>
{!otpStep ? ( {!otpStep ? (
<form onSubmit={handleSubmit} className="px-7 py-8 space-y-4"> <form onSubmit={handleSubmit} className="px-7 py-8 space-y-4" autoComplete="off">
{errorMsg && ( {errorMsg && (
<div className="text-sm text-red-700 bg-red-50 border border-red-200 rounded px-3 py-2"> <div className="text-sm text-red-700 bg-red-50 border border-red-200 rounded px-3 py-2">
{errorMsg} {errorMsg}
@ -306,6 +306,7 @@ const PublicContactForm = () => {
value={formData.email} value={formData.email}
onChange={handleChange} onChange={handleChange}
error={errors.email} error={errors.email}
autoComplete="username"
/> />
<button <button