Update React-scroll, getting rid of the need to manually set the url hash
This commit is contained in:
@@ -27,7 +27,7 @@ const defaultProps = {
|
||||
};
|
||||
|
||||
export const Signature: React.SFC<SignatureProps> = (props: SignatureProps) => {
|
||||
const sectionName = constants.TYPES_SECTION_NAME;
|
||||
const sectionName = props.sectionName;
|
||||
const parameters = renderParameters(props.parameters, props.docsInfo, sectionName, props.typeDefinitionByName);
|
||||
const paramStringArray: any[] = [];
|
||||
// HACK: For now we don't put params on newlines if there are less then 2 of them.
|
||||
|
@@ -182,6 +182,7 @@ export function Type(props: TypeProps): any {
|
||||
<ScrollLink
|
||||
to={typeDefinitionAnchorId}
|
||||
offset={0}
|
||||
hashSpy={true}
|
||||
duration={sharedConstants.DOCS_SCROLL_DURATION_MS}
|
||||
containerId={sharedConstants.DOCS_CONTAINER_ID}
|
||||
>
|
||||
|
Reference in New Issue
Block a user