-
Notifications
You must be signed in to change notification settings - Fork 20
1207 convert cca wizard to react #1216
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
base: master
Are you sure you want to change the base?
Conversation
9683435
to
e69785b
Compare
7e3a36b
to
91f37af
Compare
5a22858
to
a3d9ae7
Compare
2616b0a
to
2665f6a
Compare
c17918a
to
7bde842
Compare
58ee95d
to
b402882
Compare
845b0ee
to
4a86c1e
Compare
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.
Filename should probably be CCAWizardSlice (first C capitalized)?
export const selectAttributes = (state: RootState) => state.cCAWizard.attributes; | ||
export const selectScaleInputs = (state: RootState) => state.cCAWizard.scaleInputs; | ||
export const selectMarking = (state: RootState) => state.cCAWizard.marking; | ||
export const selectDescription = (state: RootState) => state.cCAWizard.marking; |
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.
selectDescription is selecting marking instead of description
export const selectScaleInputs = (state: RootState) => state.cCAWizard.scaleInputs; | ||
export const selectMarking = (state: RootState) => state.cCAWizard.marking; | ||
export const selectDescription = (state: RootState) => state.cCAWizard.marking; | ||
export const selectName = (state: RootState) => state.cCAWizard.marking; |
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.
selectName is also selecting marking
<div className="form-group mt-3"> | ||
<div className="form-check pl-1"> | ||
<label> | ||
<input type="checkbox" data-bind="checked: scale_inputs" /> Scale to unit variance |
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 looks like it's still using knockout code (data-bind) and is not hooked up to Redux state.
import client from "js/slycat-web-client"; | ||
import fileUploader from "js/slycat-file-uploader-factory"; | ||
import * as dialog from "js/slycat-dialog"; | ||
import { REMOTE_AUTH_LABELS } from "../../../../utils/ui-labels"; |
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 think you can import utils with "utils/ui-labels" since webpack is set to look in web-server as its root
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.
@Mletter1 left a few comments. Looks great.
No description provided.