-
Notifications
You must be signed in to change notification settings - Fork 9
Sidebar/search performance #321
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
Conversation
transition: height ${p => p.duration}ms ease-in-out; | ||
const GridCollapser = styled.div<GridCollapserProps>` | ||
display: grid; | ||
grid-template-rows: ${({ open }) => (open ? '1fr' : '0fr')}; |
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.
so clean, love it
newAgent?.subject && toast.success('Signed in!'); | ||
newAgent === undefined && toast.success('Signed out.'); | ||
} catch (e) { | ||
toast.error('Agent setting failed: ' + e.message); |
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.
Pretty sure there's a errorHandler
function that should be used, which internally does the console.log
and toast.error
. That way we can still use something like sentry or bugsnag later.
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.
nice job! Just make the handleError
change, then lgtm
cd93174
to
71ec98c
Compare
const [isOpen, setIsOpen] = React.useState(initialState); | ||
|
||
useEffect(() => { | ||
console.log('opening details'); |
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.
naughty
PR Checklist:
atomic-data-rust