import * as React from 'react'; import { Element as ScrollElement } from 'react-scroll'; import { HeaderSizes } from '../types'; import { colors } from '../utils/colors'; import { utils } from '../utils/utils'; import { AnchorTitle } from './anchor_title'; export interface SectionHeaderProps { sectionName: string; headerSize?: HeaderSizes; } interface DefaultSectionHeaderProps { headerSize: HeaderSizes; } type PropsWithDefaults = SectionHeaderProps & DefaultSectionHeaderProps; export interface SectionHeaderState { shouldShowAnchor: boolean; } export class SectionHeader extends React.Component { public static defaultProps: Partial = { headerSize: HeaderSizes.H2, }; constructor(props: SectionHeaderProps) { super(props); this.state = { shouldShowAnchor: false, }; } public render() { const { sectionName, headerSize } = this.props as PropsWithDefaults; const finalSectionName = this.props.sectionName.replace(/-/g, ' '); const id = utils.getIdFromName(finalSectionName); return (
{finalSectionName} } id={id} shouldShowAnchor={this.state.shouldShowAnchor} />
); } private _setAnchorVisibility(shouldShowAnchor: boolean) { this.setState({ shouldShowAnchor, }); } } files/minimist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-111-1/+1
* Upgrade OpenEXR and ilmbase to 2.2.0.mandree2014-08-161-1/+1
* Convert a bunch of USE_XZ to USES=tar:xz.adamw2014-07-301-2/+1
* - Bump PORTREVISION after KDE4_PREFIX changemakc2014-02-181-0/+1
* - Update to 1.1makc2014-01-224-39/+11
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1
* - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0
* - convert USE_CMAKE to USESmakc2013-03-231-1/+1
* - Update to 1.0makc2013-02-263-4/+11
* Update to 0.9makc2012-09-243-9/+15
* - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1
* - update png to 1.5.10dinoex2012-06-011-1/+1
* - Bump PORTREVISION to chase the update of multimedia/libvpxashish2012-02-161-1/+1
* Bump PORTREVISION for last pkg-plist fixerwin2012-02-071-0/+1
* Fix mismerge in previous commiterwin2012-02-071-2/+116
* Update to 0.8 with a better WWW in pkg-descr.rakuco2012-02-054-100/+6
* - Update dependencies after KDE ports upgrade.avilla2011-10-171-1/+2
* - Remove dependency on docbook-xml.avilla2011-03-251-1/+0
* Update to 0.7makc2010-12-042-3/+3
* Update to 0.6makc2010-11-272-3/+3
* Update to 0.5makc2010-11-233-10/+11