Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae01f21c61 | |||
| 40e5615cce | |||
| f36d80ac9a | |||
| 886f58f5ea |
@@ -9,7 +9,8 @@ export default function InputCom({
|
||||
iconName,
|
||||
inputHandler,
|
||||
value,
|
||||
maxLength
|
||||
maxLength,
|
||||
borderColor
|
||||
}) {
|
||||
return (
|
||||
<div className="input-com">
|
||||
@@ -21,12 +22,12 @@ export default function InputCom({
|
||||
{label}
|
||||
</label>
|
||||
)}
|
||||
<div className="input-wrapper border border-light-purple dark:border-[#5356fb29] w-full rounded-[50px] h-[58px] overflow-hidden relative ">
|
||||
<div className={`input-wrapper border border-light-purple dark:border-[#5356fb29] w-full rounded-[50px] h-[58px] overflow-hidden relative ${borderColor}`}>
|
||||
<input
|
||||
placeholder={placeholder}
|
||||
value={value}
|
||||
onChange={inputHandler}
|
||||
className="input-field placeholder:text-base text-base px-6 text-dark-gray dark:text-white w-full h-full bg-[#FAFAFA] dark:bg-[#11131F] focus:ring-0 focus:outline-none"
|
||||
className="input-field placeholder:text-base text-base px-6 text-dark-gray dark:text-white w-full h-full bg-[#FAFAFA] dark:bg-[#11131F] focus:ring-0 focus:outline-none"
|
||||
type={type}
|
||||
id={name}
|
||||
name={name}
|
||||
|
||||
@@ -26,6 +26,8 @@ export default function Layout({ children }) {
|
||||
localStorage.removeItem('member_uuid');
|
||||
localStorage.removeItem('session_token');
|
||||
localStorage.removeItem('status');
|
||||
localStorage.removeItem('layout');
|
||||
localStorage.removeItem('measurement_units');
|
||||
// toast.success("Come Back Soon", {
|
||||
// icon: `🙂`,
|
||||
// });
|
||||
|
||||
@@ -128,6 +128,7 @@ export default function AddEditReminder({ className }) {
|
||||
value={reminder.description}
|
||||
inputHandler={onReminderInputChange}
|
||||
maxLength={100}
|
||||
borderColor='border border-pink'
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -229,7 +230,7 @@ export default function AddEditReminder({ className }) {
|
||||
value={reminder.notes}
|
||||
placeholder="Provide a detailed description of your item."
|
||||
rows="7"
|
||||
className="w-full h-full px-7 py-4 border border-light-purple dark:border-[#5356fb29] rounded-[20px] text-dark-gray dark:text-white bg-[#FAFAFA] dark:bg-[#11131F] focus:ring-0 focus:outline-none resize-none"
|
||||
className="w-full h-full px-7 py-4 border border-pink dark:border-[#5356fb29] rounded-[20px] text-dark-gray dark:text-white bg-[#FAFAFA] dark:bg-[#11131F] focus:ring-0 focus:outline-none resize-none"
|
||||
onChange={onReminderInputChange}
|
||||
maxLength={250}
|
||||
/>
|
||||
|
||||
@@ -205,7 +205,6 @@ export default function ReminderTable({ className }) {
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
+5
-2
@@ -735,7 +735,7 @@ TODO: Responsive ===========================
|
||||
appearance: none;
|
||||
background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat #fafafa;
|
||||
background-position: calc(100% - 0.75rem) center !important;
|
||||
border: 0.5px solid #E3E4FE;
|
||||
@apply border border-pink;
|
||||
}
|
||||
|
||||
.dark .reminder-select select {
|
||||
@@ -764,6 +764,7 @@ TODO: Responsive ===========================
|
||||
padding: 1.25rem;
|
||||
background: #fafafa;
|
||||
border-radius: 9999px;
|
||||
@apply border border-pink;
|
||||
}
|
||||
|
||||
.dark .react-date-picker__wrapper {border: 0.5px solid #25284F;}
|
||||
@@ -788,4 +789,6 @@ TODO: Responsive ===========================
|
||||
.react-date-picker__inputGroup__leadingZero{
|
||||
cursor: pointer;
|
||||
color: #374151;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-fadeIn {@apply transition duration-300}
|
||||
@@ -18,6 +18,8 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
|
||||
localStorage.removeItem('member_id');
|
||||
localStorage.removeItem('member_uuid');
|
||||
localStorage.removeItem('status');
|
||||
localStorage.removeItem('layout');
|
||||
localStorage.removeItem('measurement_units');
|
||||
navigate("/login", { replace: true }); // redirects user to login page after session expires
|
||||
};
|
||||
|
||||
@@ -30,15 +32,15 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
|
||||
|
||||
|
||||
useEffect(()=>{
|
||||
let sessionExpReminder = setTimeout(()=>{ //reminds user of session expiry after 4 mins 240000
|
||||
let sessionExpReminder = setTimeout(()=>{ //reminds user of session expiry after 8 mins
|
||||
expireSessionReminder()
|
||||
}, 240000)
|
||||
}, 480000)
|
||||
|
||||
let timeForSessionExpiry = setTimeout(()=>{ //reminds user of session expiry after 4 mins 300000
|
||||
let timeForSessionExpiry = setTimeout(()=>{ //expire session after 10 mins
|
||||
expireSession()
|
||||
}, 300000)
|
||||
}, 600000)
|
||||
|
||||
return ()=>{ // clears timeout side effect
|
||||
return ()=>{ // clears timeout side effect7
|
||||
clearTimeout(sessionExpReminder)
|
||||
clearInterval(timeForSessionExpiry)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user