Skip to content

Commit

Permalink
chore(www): clean commented out code (gatsbyjs#13385)
Browse files Browse the repository at this point in the history
Cleaned commented out code in multiple files
  • Loading branch information
prashant-andani authored and pieh committed Apr 16, 2019
1 parent f9c1ae4 commit ce2cd7a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 93 deletions.
13 changes: 1 addition & 12 deletions www/src/components/evaluation-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,7 @@ class EvaluationTable extends Component {
const words = txt.split(` `)
return [
words.slice(0, words.length - 1).join(` `),
<span
css={
{
// WebkitHyphens: `auto`,
// MsHyphens: `auto`,
// hyphens: `auto`,
// wordBreak: `break-all`,
// display: `inline-block`,
}
}
key={`info-icon-${words[words.length - 1]}`}
>
<span key={`info-icon-${words[words.length - 1]}`}>
{` `}
{`${words[words.length - 1]} `}
<img
Expand Down
2 changes: 1 addition & 1 deletion www/src/components/homepage/homepage-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const HomepageSection = ({
)}
{links && (
<Actions>
{links.map((item, idx) => {
{links.map(item => {
const { to, label, icon: Icon, secondary, tracking } = item

return (
Expand Down
2 changes: 0 additions & 2 deletions www/src/components/sidebar/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ class Accordion extends React.Component {
bottom: -1,
},
}),
// marginTop:
// level === 0 && isExpanded ? `${space[4]} !important` : false,
}}
>
<ItemWithSubitems
Expand Down
78 changes: 0 additions & 78 deletions www/src/views/creators/creators-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,6 @@ import Checkmark from "./check.svg"
import Button from "../../components/button"
import ArrowForwardIcon from "react-icons/lib/md/arrow-forward"

// const CreatorsHeaderLink = ({ linkTo, children }) => (
// <li
// css={{
// display: `flex`,
// alignItems: `center`,
// margin: 0,
// }}
// >
// <Link
// to={linkTo}
// state={{ filter: `` }}
// activeStyle={{
// backgroundColor: colors.gatsby,
// color: colors.white,
// }}
// css={{
// ...styles.CreatorsHeaderLink,
// }}
// >
// {children}
// </Link>
// </li>
// )

class CreatorsHeader extends Component {
render() {
const { /*forHire, hiring,*/ submissionText } = this.props
Expand All @@ -55,67 +31,13 @@ class CreatorsHeader extends Component {
>
Creators
</Link>
{/* <nav
role="navigation"
css={{
display: `flex`,
justifyContent: `space-between`,
alignItems: `center`,
[breakpoints.sm]: {
justifyContent: `flex-start`,
},
}}
>
<CreatorsHeaderLink linkTo="/creators/">All</CreatorsHeaderLink>
<CreatorsHeaderLink linkTo="/creators/people/">
People
</CreatorsHeaderLink>
<CreatorsHeaderLink linkTo="/creators/agencies/">
Agencies
</CreatorsHeaderLink>
<CreatorsHeaderLink linkTo="/creators/companies/">
Companies
</CreatorsHeaderLink>
</nav> */}
<div
className="creators--filters"
css={{
display: `flex`,
flex: `2`,
}}
>
{/* <label
className="label"
css={[styles.filter, forHire && styles.activeFilter]}
>
<input
type="checkbox"
name="forHire"
css={{
...styles.input,
}}
checked={forHire}
onChange={() => this.props.applyFilter(`for_hire`)}
disabled={hiring}
/>
For Hire
</label>
<label
className="label"
css={[styles.filter, hiring && styles.activeFilter]}
>
<input
type="checkbox"
name="hiring"
css={{
...styles.input,
}}
checked={hiring}
onChange={() => this.props.applyFilter(`hiring`)}
disabled={forHire}
/>
Hiring
</label> */}
<div
css={{
marginLeft: `auto`,
Expand Down

0 comments on commit ce2cd7a

Please sign in to comment.