-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kc 2085 align search pop up usage with design #28
Kc 2085 align search pop up usage with design #28
Conversation
src/components/InputGlobal/index.tsx
Outdated
} | ||
setSearch(event.target.value); | ||
setShowTooltip(true); | ||
setSearch(event.target.value.trim().toLowerCase()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to add debounce function
src/components/InputGlobal/index.tsx
Outdated
@@ -18,6 +18,7 @@ const Input: React.FC<InputGlobal> = ({ | |||
}) => { | |||
const [search, setSearch] = useState(''); | |||
const [error, setError] = useState(false); | |||
const [linkPage, setLinkPage] = useState(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there another user action that needs to be monitored besides the text input or mouse focus in/out of the pop up? if not, just create a variable that stores the data you want to save
src/components/InputGlobal/index.tsx
Outdated
setShowTooltip(true); | ||
setSearch(event.target.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does not solve excessive user requests, must add debounce fn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
must discuss problems in PR time
@@ -49,14 +49,18 @@ const getRedirectButton = ( | |||
</div> | |||
); | |||
|
|||
export const setSessionStorage = (link: string): void => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not very sure if this is really necessary. Let's discuss this in PR time
No description provided.