-
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
Version 0.0.2 #45
Version 0.0.2 #45
Conversation
* generate via ts-proto * add grpc-js dep * fix tsc error * regenerate to pick up proto changes Co-authored-by: Travis Groth <[email protected]> Co-authored-by: wasaga <>
return ( | ||
<SvgIcon viewBox="0 0 20 20" className={classes.iconStyle}> | ||
<path | ||
d="M8.33317 3.3335H3.33317C2.4165 3.3335 1.67484 4.0835 1.67484 5.00016L1.6665 15.0002C1.6665 15.9168 2.4165 16.6668 3.33317 16.6668H16.6665C17.5832 16.6668 18.3332 15.9168 18.3332 15.0002V6.66683C18.3332 5.75016 17.5832 5.00016 16.6665 5.00016H9.99984L8.33317 3.3335Z" |
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.
where did these svgs come from? Maybe add a comment if it came from a library?
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.
no library. it is from the designer.
src/renderer/pages/ConnectForm.tsx
Outdated
}; | ||
|
||
const saveTags = (arr: string[]): void => { | ||
setTags(arr.map((tag) => formatTag(tag))); |
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.
setTags(arr.map((tag) => formatTag(tag))); | |
setTags(arr.map(formatTag)); |
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.
yup
const [statuses, setStatuses] = useState( | ||
{} as { [key: string]: ListenerStatus } | ||
); |
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 [statuses, setStatuses] = useState( | |
{} as { [key: string]: ListenerStatus } | |
); | |
const [statuses, setStatuses] = useState<Record<string, ListenerStatus>>({}); |
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.
yup had copy pasted from the generated code
const [statuses, setStatuses] = useState( | ||
{} as { [key: string]: ListenerStatus } | ||
); | ||
const [error, setError] = useState(null as ServiceError | null); |
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 explicitly setting the generic type would be clearer in this case.
const [error, setError] = useState(null as ServiceError | null); | |
const [error, setError] = useState<ServiceError>(null); |
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.
it complains unless i do this:
const [error, setError] = useState<ServiceError | null>(null);
Most Done. Planning to merge it so we can do smaller prs