-
Notifications
You must be signed in to change notification settings - Fork 271
Jon/rn79/swipe chart #5723
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
Jon/rn79/swipe chart #5723
Conversation
@@ -484,7 +506,7 @@ function FloatingNavFixer(props: { navigation: NavigationBase }) { | |||
|
|||
// Retry once the keyboard drops or if we time out: | |||
let handled = false | |||
function retryNavigation() { | |||
const retryNavigation: () => 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.
const retryNavigation = (): void => {
would be a simpler way to say the same thing
src/components/charts/SwipeChart.tsx
Outdated
@@ -14,30 +7,23 @@ import { | |||
asString, | |||
asTuple | |||
} from 'cleaners' | |||
/* For our `handleGetPointerProps` handler: */ |
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.
Please remove this exception, and instead change the props
variable to be called opts
or something, inside handleGetPointerProps
. The lint rule is picky about things called "props"
src/components/charts/SwipeChart.tsx
Outdated
// This rule doesn't reliably track TS interfaces on fn components... | ||
// eslint-disable-next-line react/no-unused-prop-types |
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.
The problem is that you have export const SwipeChart: React.FC<Props> = (params: Props) => {
, which should instead be export const SwipeChart: React.FC<Props> = props => {
. Notice the variable rename, and the type removal. With this change in place, ESLint is fine.
6f76345
to
b56b634
Compare
0cd8c71
to
b1b18d2
Compare
b1b18d2
to
1d602b3
Compare
45cbdde
to
f566740
Compare
We need to be able to dynamically disable scroll for the new `SwipeChart`
Make the pointer strip reach up to the plotted chart line
f566740
to
8a02547
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: