commit
stringlengths
40
40
old_file
stringlengths
4
150
new_file
stringlengths
4
150
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
501
message
stringlengths
15
4.06k
lang
stringclasses
4 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
diff
stringlengths
0
4.35k
21bca52b7118cfa03ab6b64a091e7b41d404a70c
public/components/QueryArea.jsx
public/components/QueryArea.jsx
import React from 'react'; class QueryArea extends React.Component { constructor(props){ super(props); this.handleBeerClick = this.handleBeerClick.bind(this); } handleBeerClick(e) { e.preventDefault(); const targetBeer = this.props.beerList[e.target.value]; this.props.handleIndividalBeerSearch(target...
import React from 'react'; const QueryArea = (props) => { const handleBeerClick = (e) => { e.preventDefault(); const targetBeer = props.beerList[e.target.value]; props.handleIndividalBeerSearch(targetBeer); } return ( <div> { props.beerList && props.beerList.length > 1 ? <div> <h4>Did ...
Refactor query area component to stateless component
Refactor query area component to stateless component
JSX
mit
joeylaguna/tankard.io,joeylaguna/tankard.io
--- +++ @@ -1,34 +1,26 @@ import React from 'react'; -class QueryArea extends React.Component { - constructor(props){ - super(props); - this.handleBeerClick = this.handleBeerClick.bind(this); - } - - handleBeerClick(e) { - e.preventDefault(); - const targetBeer = this.props.beerList[e.target.value]; - thi...
007f65f02c6f6ddc07b1fb9a97f398c3db5d8c1f
src/components/FilterSuggester/FilterSuggester.jsx
src/components/FilterSuggester/FilterSuggester.jsx
const React = require('react') class FilterSuggester extends React.Component { onChange(event) { event.target.blur() if (this.props.onChange) { this.props.onChange(event) } } render() { const inputClass = this.props.className || '' const value = this.props.value || '' return ( ...
const React = require('react') class FilterSuggester extends React.Component { constructor(props) { super(props) this.state = { value: props.value || '' } } onChange(event) { this.setState({ value: event.target.value }) if (this.props.onChange) { this.props.onChange(event) } } ren...
Fix not being able to type in 'new filter' query field
Fix not being able to type in 'new filter' query field
JSX
mit
cheshire137/gh-notifications-snoozer,cheshire137/gh-notifications-snoozer
--- +++ @@ -1,8 +1,13 @@ const React = require('react') class FilterSuggester extends React.Component { + constructor(props) { + super(props) + this.state = { value: props.value || '' } + } + onChange(event) { - event.target.blur() + this.setState({ value: event.target.value }) if (this.prop...
172786be0182117fe2893dcf9bde25cf80e6dac0
src/components/organisms/todo-list/todo-list.jsx
src/components/organisms/todo-list/todo-list.jsx
require('./todo-list.scss'); var React = require('react/addons'); var Card = require('../../molecules/card/card.jsx'); var TodoItem = require('../../molecules/todo-item/todo-item.jsx'); var TodoForm = require('../../molecules/todo-form/todo-form.jsx'); var TodoList = React.createClass({ propTypes: { todos: Re...
require('./todo-list.scss'); var React = require('react/addons'); var Card = require('../../molecules/card/card.jsx'); var TodoItem = require('../../molecules/todo-item/todo-item.jsx'); var TodoForm = require('../../molecules/todo-form/todo-form.jsx'); var TodoList = React.createClass({ propTypes: { todos: Re...
Add React unique keys to Cards
Add React unique keys to Cards
JSX
mit
mattpetrie/React-Node-Project-Seed,haner199401/React-Node-Project-Seed,haner199401/React-Node-Project-Seed,mattpetrie/React-Node-Project-Seed
--- +++ @@ -22,8 +22,8 @@ var todos = Object.keys(this.props.todos).map(function(todo_id) { var todo = this.props.todos[todo_id]; return ( - <Card> - <TodoItem key={todo._id} todo={todo} /> + <Card key={todo._id}> + <TodoItem todo={todo} /> </Card> );...
4860b128c18a4a595efb6237cff4d6e5a83f9fb0
src/components/ExtraInfo.jsx
src/components/ExtraInfo.jsx
// @flow import React from 'react'; import get from 'lodash/get'; import { translateWithObject } from '../i18n/translate'; import type { PlaceInfoRelated } from '../model/PlaceInfo'; type Props = { related: PlaceInfoRelated, sourceId: string, locale: string, }; export default function ExtraInfo(props: Props) {...
// @flow import React from 'react'; import get from 'lodash/get'; import { translateWithObject } from '../i18n/translate'; import type { PlaceInfoRelated } from '../model/PlaceInfo'; type Props = { related: PlaceInfoRelated, sourceId: string, locale: string, }; export default function ExtraInfo(props: Props) {...
Hide repetitive extra info from screen readers
Hide repetitive extra info from screen readers There is a trade-off here: - The information might be lost for people using screen readers - As it has kind of a small-print character, the widget is more usable if the info not repeated for every list item a screen reader user switches to.
JSX
mit
sozialhelden/accessibility-cloud-js,sozialhelden/accessibility-cloud-js
--- +++ @@ -16,7 +16,7 @@ const translations = get(props.related, key); if (translations) { - return (<header className="ac-result-extra-info"> + return (<header className="ac-result-extra-info" aria-hidden> {translateWithObject(translations, props.locale)} </header>); }
63bfbf0c986cb07b710ac55980420b093d9bd7ee
src/components/home/home.jsx
src/components/home/home.jsx
import React from 'react'; var LogoVerticalWhite = require('../logo/logo'); var Geolocalizer = require('../geolocalizer/geolocalizer'); var Slider = require('../slider/slider'); var Home = React.createClass ({ render: function () { return ( <main className="ktg-home"> <header className="ktg-home__hea...
import React from 'react'; var LogoVerticalWhite = require('../logo/logo'); var Geolocalizer = require('../geolocalizer/geolocalizer'); var Slider = require('../slider/slider'); var Home = React.createClass ({ render: function () { return ( <main className="ktg-home"> <header className="ktg-home__hea...
Change markup in header removing h1 not needed
Change markup in header removing h1 not needed
JSX
apache-2.0
swcraftersclm/katangapp-frontend,swcraftersclm/katangapp-frontend,swcraftersclm/katangapp-frontend
--- +++ @@ -9,8 +9,7 @@ return ( <main className="ktg-home"> <header className="ktg-home__header"> - <h1 className="ktg-home__title">katanga</h1> - <LogoVerticalWhite /> + <LogoVerticalWhite /> </header> <form id="ktg-form-metersAround"> <Slider meters=...
a3bb8baaa90c65cfd695c34118e33590725e170b
src/containers/Timeline.jsx
src/containers/Timeline.jsx
import React, { Component } from 'react' import { connect } from 'react-redux' import { fetchPhotos } from '../actions/photos' import PhotosList from '../components/PhotosList' import Topbar from '../components/Topbar' import Viewer from '../components/Viewer' export class Timeline extends Component { constructor ...
import React, { Component } from 'react' import { connect } from 'react-redux' import { fetchPhotos } from '../actions/photos' import PhotosList from '../components/PhotosList' import Topbar from '../components/Topbar' import Viewer from '../components/Viewer' export class Timeline extends Component { constructor ...
Use `this` for props and state in the timeline render function
[fix] Use `this` for props and state in the timeline render function
JSX
agpl-3.0
nono/cozy-photos-v3,enguerran/cozy-drive,cozy/cozy-files-v3,enguerran/cozy-drive,y-lohse/cozy-drive,goldoraf/cozy-photos-v3,cozy/cozy-photos-v3,cozy/cozy-files-v3,goldoraf/cozy-drive,y-lohse/cozy-drive,enguerran/cozy-files-v3,nono/cozy-files-v3,enguerran/cozy-drive,cozy/cozy-files-v3,enguerran/cozy-files-v3,y-lohse/coz...
--- +++ @@ -21,13 +21,13 @@ } } - render (props, state) { + render () { return ( <div> <Topbar viewName='photos' /> - <PhotosList {...props} {...state} /> - {props && props.params && props.params.photoId && - <Viewer photoId={props.params.photoId} /> + <P...
b92330aebb35893cdc5e36094d6ec73ba98b3176
web/app/components/Modal/BrowserSupportModal.jsx
web/app/components/Modal/BrowserSupportModal.jsx
import React, {PropTypes} from "react"; import ZfApi from "react-foundation-apps/src/utils/foundation-api"; import Modal from "react-foundation-apps/src/modal"; import Trigger from "react-foundation-apps/src/trigger"; import Translate from "react-translate-component"; export default class BrowserSupportModal extends R...
import React, {PropTypes} from "react"; import ZfApi from "react-foundation-apps/src/utils/foundation-api"; import Modal from "react-foundation-apps/src/modal"; import Trigger from "react-foundation-apps/src/trigger"; import Translate from "react-translate-component"; export default class BrowserSupportModal extends R...
Change padding as string to int
Change padding as string to int
JSX
mit
trendever/bitshares-ui,trendever/bitshares-ui,BitSharesEurope/graphene-ui-testnet,trendever/bitshares-ui,bitshares/bitshares-ui,BunkerChainLabsInc/freedomledger-wallet,bitshares/bitshares-2-ui,bitshares/bitshares-2-ui,BitSharesEurope/graphene-ui-testnet,BitSharesEurope/wallet.bitshares.eu,BitSharesEurope/graphene-ui-te...
--- +++ @@ -27,7 +27,7 @@ <p><a href onClick={this._openLink}>Google Chrome</a></p> - <div className="button-group no-overflow" style={{paddingTop: "0"}}> + <div className="button-group no-overflow" style={{paddingTop: 0}}> <Trigg...
dd71ebb21900e7961bec22901452bcf8daac421b
web/static/js/components/high_contrast_button.jsx
web/static/js/components/high_contrast_button.jsx
import React from "react" import PropTypes from "prop-types" import * as AppPropTypes from "../prop_types" const HighContrastButton = props => { const {actions, userOptions, className} = props return ( <div className={className}> <button className="fluid ui left button" onClick={actions....
import React from "react" import PropTypes from "prop-types" import * as AppPropTypes from "../prop_types" const HighContrastButton = props => { const {actions, userOptions, className} = props return ( <div className={className}> <button className="ui right labeled icon button" onClick={...
Add low-vision icon to high-contrast toggle button
Add low-vision icon to high-contrast toggle button
JSX
mit
stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro
--- +++ @@ -8,11 +8,12 @@ return ( <div className={className}> <button - className="fluid ui left button" + className="ui right labeled icon button" onClick={actions.toggleHighContrastOn} type="button" > - {`Turn High Contrast ${userOptions.highContrastOn...
137bbd36f29d5b2b9e30f26adc112660d99a28c0
www_src/pages/discover/discover.jsx
www_src/pages/discover/discover.jsx
var React = require('react/addons'); var ImageLoader = require('react-imageloader'); var api = require('../../lib/api.js'); var render = require('../../lib/render.jsx'); var Link = require('../../components/link/link.jsx'); var Discover = React.createClass({ mixins: [], getInitialState: function () { this.lis...
var React = require('react/addons'); var ImageLoader = require('react-imageloader'); var api = require('../../lib/api.js'); var render = require('../../lib/render.jsx'); var Link = require('../../components/link/link.jsx'); var Discover = React.createClass({ mixins: [], getInitialState: function () { this.lis...
Remove unused items from state
Remove unused items from state
JSX
mpl-2.0
gvn/webmaker-android,alanmoo/webmaker-android,bolaram/webmaker-android,alicoding/webmaker-android,k88hudson/webmaker-android,rodmoreno/webmaker-android,adamlofting/webmaker-android,j796160836/webmaker-android,alanmoo/webmaker-android,alicoding/webmaker-android,bolaram/webmaker-android,mozilla/webmaker-android,rodmoreno...
--- +++ @@ -11,13 +11,7 @@ this.list = require('./mock.json'); return { - list: this.list, - offset: 0, - limit: 10, - locale: { - language: 'en', - country: 'us' - } + list: this.list }; }, render: function () {
ed95af23f79c95da7591966baeaa0f90a83018b5
src/app/components/simple-editable-list/SimpleEditableListItem.jsx
src/app/components/simple-editable-list/SimpleEditableListItem.jsx
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; const propTypes = { // title: PropTypes.string.isRequired, // id: PropTypes.string.isRequired, // url: PropTypes.string.isRequired, // details: PropTypes.arrayOf(PropTypes.string) } expor...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; const propTypes = { // title: PropTypes.string.isRequired, // id: PropTypes.string.isRequired, // url: PropTypes.string.isRequired, // details: PropTypes.arrayOf(PropTypes.string) } expor...
Use buttons and bold font
Use buttons and bold font
JSX
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
--- +++ @@ -25,16 +25,14 @@ render() { return ( <li className="simple-select-list__item grid"> - <div className="grid__col-lg-3"> - <p>{this.props.field.type}</p> - </div> - <div className="grid__col-lg-7"> + <di...
61c18de197b07f7fb65c8ecd7d9e56e86ead3dd8
client/src/components/Main.jsx
client/src/components/Main.jsx
import React from 'react'; import DebateItem from './DebateItem.jsx'; import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'; import DebateFloor from './debate/DebateFloor.jsx'; import axios from 'axios'; class Main extends React.Component { constructor(props) { super(props); ...
import React from 'react'; import DebateItem from './DebateItem.jsx'; import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'; import DebateFloor from './debate/DebateFloor.jsx'; import axios from 'axios'; class Main extends React.Component { constructor(props) { super(props); ...
Add query to increase points for debate side and increase votes for an argument
Add query to increase points for debate side and increase votes for an argument
JSX
mit
garrulous-gorillas/garrulous-gorillas,garrulous-gorillas/garrulous-gorillas
--- +++ @@ -32,10 +32,25 @@ console.log('[Main] Get debates ERROR:', err); }) } + + this.testGetArgs = () => { + console.log('GET ARGS TEST') + axios.get('http://localhost:3000/debates/api/getArgs', { + params: { + topic: 'Gun control in America', + side: 'ag...
83a35078bf6beedd2fe8659c25e4f1fe0fc58cfc
dashboard-gui/src/javascripts/pages/not_found.jsx
dashboard-gui/src/javascripts/pages/not_found.jsx
import React from 'react' import I18n from 'i18n-js' import PropTypes from 'prop-types' import stopEvent from '../utils/stop' class NotFound extends React.Component { login = (e) => { stopEvent(e) window.location.href = `/login?redirect_url=${encodeURIComponent(window.location.href)}` } render() { c...
import React from 'react' import I18n from 'i18n-js' import PropTypes from 'prop-types' import stopEvent from '../utils/stop' class NotFound extends React.Component { login = (e) => { stopEvent(e) window.location.href = `/login?redirect_url=${encodeURIComponent(window.location.href)}` } render() { c...
Add page not found to container
Add page not found to container
JSX
apache-2.0
OpenConext/OpenConext-dashboard,OpenConext/OpenConext-dashboard,OpenConext/OpenConext-dashboard,OpenConext/OpenConext-dashboard
--- +++ @@ -13,22 +13,24 @@ const { currentUser } = this.context return ( <div className="mod-not-found"> - <h1>{I18n.t('not_found.title')}</h1> - <h2 className="sub-title">{I18n.t('not_found.subTitle')}</h2> - <ul> - {currentUser.guest && ( - <li> - ...
0e4ed32b50fb23ea6df9b0a3ed38e3f23a68659e
src/components/TopBar/CurrentUser.jsx
src/components/TopBar/CurrentUser.jsx
import classnames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import {t} from 'i18next'; import CurrentUserMenu from './CurrentUserMenu'; export default function CurrentUser({ user, onLogOut, onStartLogIn, }) { if (user.authenticated) { return <CurrentUserMenu user={us...
import classnames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import {t} from 'i18next'; import CurrentUserMenu from './CurrentUserMenu'; export default function CurrentUser({ user, onLogOut, onStartLogIn, }) { if (user.authenticated) { return <CurrentUserMenu user={us...
Enlarge log-in button click target
Enlarge log-in button click target Remove login `<span>`. Move its `onClick` listener and log-in toggler into parent `div`. Issue #1222
JSX
mit
popcodeorg/popcode,popcodeorg/popcode,popcodeorg/popcode,jwang1919/popcode,jwang1919/popcode,outoftime/learnpad,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,outoftime/learnpad
--- +++ @@ -18,13 +18,9 @@ 'top-bar__menu-button', 'top-bar__menu-button_primary', )} + onClick={onStartLogIn} > - <span - className="top-bar__log-in-prompt" - onClick={onStartLogIn} - > - {t('top-bar.session.log-in-prompt')} - </span> + {t('...
c569d8a52c150204f10ed9a8304a327da546af1b
app/javascript/CmsAdmin/CmsContentGroupsAdmin/index.jsx
app/javascript/CmsAdmin/CmsContentGroupsAdmin/index.jsx
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import CmsContentGroupsAdminTable from './CmsContentGroupsAdminTable'; import EditCmsContentGroup from './EditCmsContentGroup'; import NewCmsContentGroup from './NewCmsContentGroup'; import ViewCmsContentGroup from './ViewCmsContentGroup'; f...
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import CmsContentGroupsAdminTable from './CmsContentGroupsAdminTable'; import EditCmsContentGroup from './EditCmsContentGroup'; import NewCmsContentGroup from './NewCmsContentGroup'; import ViewCmsContentGroup from './ViewCmsContentGroup'; f...
Fix rendering the new content group page
Fix rendering the new content group page
JSX
mit
neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode
--- +++ @@ -10,8 +10,8 @@ return ( <Switch> <Route path="/cms_content_groups/:id/edit" component={EditCmsContentGroup} /> + <Route path="/cms_content_groups/new" component={NewCmsContentGroup} /> <Route path="/cms_content_groups/:id" component={ViewCmsContentGroup} /> - <Route path="/c...
1a2db65f254237f3800ba09486f794e45553101d
imports/modules/documents/components/documents.jsx
imports/modules/documents/components/documents.jsx
import React from 'react'; import { Link } from 'react-router-dom'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import Button from 'react-bootstrap/lib/Button'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import DocumentsList from './documentsList'; const Documents ...
import React from 'react'; import { Link } from 'react-router-dom'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import Button from 'react-bootstrap/lib/Button'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import DocumentsList from './documentsList'; const Documents ...
Update Documents, component Document, fix size of button and display breackpoint
Update Documents, component Document, fix size of button and display breackpoint
JSX
mit
ggallon/rock,ggallon/rock
--- +++ @@ -13,9 +13,9 @@ <div className="page-header clearfix"> <h4 className="pull-left">Documents</h4> <Link to="/documents/new"> - <Button bsStyle="success" className="pull-right"> - <span className="visible-lg-block">Nouveau document</span> - <s...
af52a4e7aefa99a094afabe71b1f8af3731b381d
src/templates/app/resources/economic_calendar.jsx
src/templates/app/resources/economic_calendar.jsx
import React from 'react'; import Loading from '../../_common/components/loading.jsx'; import SeparatorLine from '../../_common/components/separator_line.jsx'; const EconomicCalendar = () => ( <div id='economic_calendar' className='static_full'> <div className='economic-calendar-header'> <h1>{i...
import React from 'react'; import Loading from '../../_common/components/loading.jsx'; import SeparatorLine from '../../_common/components/separator_line.jsx'; const EconomicCalendar = () => ( <div id='economic_calendar' className='static_full'> <div className='gr-padding-10'> <h1>{it.L('Econom...
Remove text from Economic Calendar page
Remove text from Economic Calendar page
JSX
apache-2.0
4p00rv/binary-static,4p00rv/binary-static,negar-binary/binary-static,binary-com/binary-static,kellybinary/binary-static,binary-static-deployed/binary-static,kellybinary/binary-static,ashkanx/binary-static,binary-static-deployed/binary-static,negar-binary/binary-static,kellybinary/binary-static,negar-binary/binary-stati...
--- +++ @@ -4,14 +4,8 @@ const EconomicCalendar = () => ( <div id='economic_calendar' className='static_full'> - <div className='economic-calendar-header'> + <div className='gr-padding-10'> <h1>{it.L('Economic Calendar')}</h1> - <p>{it.L('Check out the latest economic eve...
a2e9d0150ee3e411a53af683bdf1645848c72154
src/drive/web/modules/trash/components/DestroyConfirm.jsx
src/drive/web/modules/trash/components/DestroyConfirm.jsx
import React from 'react' import classNames from 'classnames' import Modal from 'cozy-ui/transpiled/react/Modal' import { translate } from 'cozy-ui/transpiled/react/I18n' import styles from 'drive/styles/confirms.styl' const DestroyConfirm = ({ t, fileCount, confirm, onClose }) => { const confirmationTexts = ['forb...
import React from 'react' import classNames from 'classnames' import Modal from 'cozy-ui/transpiled/react/Modal' import { translate } from 'cozy-ui/transpiled/react/I18n' import styles from 'drive/styles/confirms.styl' const DestroyConfirm = ({ t, fileCount, confirm, onClose }) => { const confirmationTexts = ['forb...
Use async instead of then/catch
refactor: Use async instead of then/catch
JSX
agpl-3.0
nono/cozy-files-v3,nono/cozy-files-v3,nono/cozy-files-v3,nono/cozy-files-v3
--- +++ @@ -24,11 +24,14 @@ secondaryAction={onClose} primaryType="danger" primaryText={t('destroyconfirmation.delete')} - primaryAction={() => - confirm() - .then(onClose) - .catch(onClose) - } + primaryAction={async () => { + try { + await...
d8995b55b1ac4df64b68ce10e6db5708c1b0d7dd
app/assets/javascripts/components/GroupShow.js.jsx
app/assets/javascripts/components/GroupShow.js.jsx
class GroupShow extends React.Component { constructor() { super(); this.state = { title: null, admin_id: null, members: null } } showMembers(){ if(this.state.members != null){ return( this.state.members.map((member) => { return( <div>{member}<...
class GroupShow extends React.Component { constructor() { super(); this.state = { title: null, admin_id: null, members: null } } showMembers(){ if(this.state.members != null){ let n = 0 return( this.state.members.map((member, n) => { n++ r...
Add unique keys to group members
Add unique keys to group members
JSX
mit
mattgfisch/meal,mattgfisch/meal,mattgfisch/meal
--- +++ @@ -10,10 +10,12 @@ showMembers(){ if(this.state.members != null){ + let n = 0 return( - this.state.members.map((member) => { + this.state.members.map((member, n) => { + n++ return( - <div>{member}</div> + <div key={this.state.title...
2eebf681c2c6cad994321dc55b081b39c00b00b6
src/sentry/static/sentry/app/components/timeSince.jsx
src/sentry/static/sentry/app/components/timeSince.jsx
import React from "react"; import moment from "moment"; import PureRenderMixin from 'react-addons-pure-render-mixin'; var TimeSince = React.createClass({ mixins: [ PureRenderMixin ], propTypes: { date: React.PropTypes.any.isRequired, suffix: React.PropTypes.string }, getDefaultProps() { ret...
import React from "react"; import moment from "moment"; import PureRenderMixin from 'react-addons-pure-render-mixin'; var TimeSince = React.createClass({ mixins: [ PureRenderMixin ], statics: { getDateObj(date) { if (typeof date === "string" || typeof date === "number") { date = new Date(d...
Drop forceUpdate from TimeSince; use state/props changes instead
Drop forceUpdate from TimeSince; use state/props changes instead
JSX
bsd-3-clause
gencer/sentry,BuildingLink/sentry,ifduyue/sentry,zenefits/sentry,jean/sentry,JackDanger/sentry,JackDanger/sentry,zenefits/sentry,mvaled/sentry,daevaorn/sentry,gencer/sentry,jean/sentry,jean/sentry,fotinakis/sentry,jean/sentry,JamesMura/sentry,alexm92/sentry,looker/sentry,daevaorn/sentry,mvaled/sentry,gencer/sentry,zene...
--- +++ @@ -6,6 +6,15 @@ mixins: [ PureRenderMixin ], + + statics: { + getDateObj(date) { + if (typeof date === "string" || typeof date === "number") { + date = new Date(date); + } + return date; + } + }, propTypes: { date: React.PropTypes.any.isRequired, @@ -18,35 +...
f6dfe8da383e48d9cd6f73faf2556e5559d577d8
src/components/crash-message/crash-message.jsx
src/components/crash-message/crash-message.jsx
import PropTypes from 'prop-types'; import React from 'react'; import Box from '../box/box.jsx'; import {FormattedMessage} from 'react-intl'; import styles from './crash-message.css'; import reloadIcon from './reload.svg'; const CrashMessage = props => ( <div className={styles.crashWrapper}> <Box classNam...
import PropTypes from 'prop-types'; import React from 'react'; import Box from '../box/box.jsx'; import styles from './crash-message.css'; import reloadIcon from './reload.svg'; const CrashMessage = props => ( <div className={styles.crashWrapper}> <Box className={styles.body}> <img ...
Revert localization of crash message.
Revert localization of crash message. It doesn't work without an intl provider, which is mounted inside the error boundary.
JSX
bsd-3-clause
cwillisf/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui
--- +++ @@ -1,7 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; import Box from '../box/box.jsx'; -import {FormattedMessage} from 'react-intl'; import styles from './crash-message.css'; import reloadIcon from './reload.svg'; @@ -14,20 +13,13 @@ src={reloadIcon} ...
dff656a69714bc9c13c02960b80fd9668d147a6b
web/static/js/components/stage_change_info_voting.jsx
web/static/js/components/stage_change_info_voting.jsx
import React from "react" export default () => ( <React.Fragment> The skinny on Labeling + Voting: <div className="ui basic segment"> <ul className="ui list"> <li>Work as a team to arrive at a sensible label for each group <span className="optional">(optional)</span></li> <li>Apply vote...
import React from "react" export default () => ( <React.Fragment> The skinny on Labeling + Voting: <div className="ui basic segment"> <ul className="ui list"> <li>Work as a team to arrive at a sensible label for each group <span className="optional">(optional)</span></li> <li>Apply vote...
Remove unnecessary whitespace from 'Note:' bullet point
Remove unnecessary whitespace from 'Note:' bullet point
JSX
mit
stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro
--- +++ @@ -7,8 +7,7 @@ <ul className="ui list"> <li>Work as a team to arrive at a sensible label for each group <span className="optional">(optional)</span></li> <li>Apply votes to the items you feel are <strong>most important</strong> to discuss. - <p className="list-item-note"> - ...
bbe1f52130253064b4cefb177a48412494a010e1
lib/search-bar.jsx
lib/search-bar.jsx
var React = require('react'); var debounce = require('debounce'); var SearchBar = React.createClass({ getDefaultProps: function() { return { minlength: 2, timeout: 100, onChange: function() {} }; }, render: function() { return <input type='text' p...
var React = require('react'); var debounce = require('debounce'); var SearchBar = React.createClass({ getDefaultProps: function() { return { minlength: 2, timeout: 300, onChange: function() {} }; }, render: function() { return <input type='text' p...
Increase default debounce timeout to 300 ms
Increase default debounce timeout to 300 ms
JSX
mit
meirwah/react-json-inspector,meirwah/react-json-inspector
--- +++ @@ -5,7 +5,7 @@ getDefaultProps: function() { return { minlength: 2, - timeout: 100, + timeout: 300, onChange: function() {} }; },
219e06070c1c85cc893e1fbfb889d7e6abaaeee6
app/assets/javascripts/components/overview/my_exercises/components/Header.jsx
app/assets/javascripts/components/overview/my_exercises/components/Header.jsx
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; export const Header = ({ completed = false, course, remaining = [], text }) => ( <header className="header"> <h3 className={completed ? 'completed' : ''}> { text } { remaining.length ...
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; export const Header = ({ completed = false, course, remaining = [], text }) => ( <header className="header"> <h3 className={completed ? 'completed' : ''}> { text } { remaining.length ...
Change Exercise link to exact path
Change Exercise link to exact path
JSX
mit
WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard
--- +++ @@ -12,7 +12,7 @@ : null } </h3> - <NavLink to={`../../${course.slug}/resources`} className="resources-link"> + <NavLink exact to={`/courses/${course.slug}/resources`} className="resources-link"> View all exercises </NavLink> </header>
e906677092ca2f38abd918436ea5967c096d555f
app/assets/javascripts/components/components/icon_button.jsx
app/assets/javascripts/components/components/icon_button.jsx
import PureRenderMixin from 'react-addons-pure-render-mixin'; const IconButton = React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, icon: React.PropTypes.string.isRequired, onClick: React.PropTypes.func.isRequired, size: React.PropTypes.number, active: React.PropTypes.boo...
import PureRenderMixin from 'react-addons-pure-render-mixin'; const IconButton = React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, icon: React.PropTypes.string.isRequired, onClick: React.PropTypes.func.isRequired, size: React.PropTypes.number, active: React.PropTypes.boo...
Stop event propagation after IconButton onClick
Stop event propagation after IconButton onClick
JSX
agpl-3.0
riku6460/chikuwagoddon,hugogameiro/mastodon,WitchesTown/mastodon,imomix/mastodon,TheInventrix/mastodon,hugogameiro/mastodon,riku6460/chikuwagoddon,RobertRence/Mastodon,amazedkoumei/mastodon,cobodo/mastodon,theoria24/mastodon,h-izumi/mastodon,salvadorpla/mastodon,masarakki/mastodon,sinsoku/mastodon,WitchesTown/mastodon,...
--- +++ @@ -22,6 +22,7 @@ handleClick (e) { e.preventDefault(); this.props.onClick(); + e.stopPropagation(); }, render () {
d20d5218d25bd7b3c91d615d7c42d2bf90d70757
plugins/plugin-site/src/components/ReportAProblem.jsx
plugins/plugin-site/src/components/ReportAProblem.jsx
import React from 'react'; import PropTypes from 'prop-types'; function ReportAProblem({reportProblemTitle, reportProblemUrl, reportProblemRelativeSourcePath}) { const title = `Report a problem with ${reportProblemRelativeSourcePath}`; const body = `Problem with the [${reportProblemTitle}](https://plugins.jenk...
import React from 'react'; import PropTypes from 'prop-types'; function ReportAProblem({reportProblemTitle, reportProblemUrl, reportProblemRelativeSourcePath}) { const title = `Report a problem with ${reportProblemRelativeSourcePath}`; const body = `Problem with the [${reportProblemTitle}](https://plugins.jenk...
Mark properties as not required
Mark properties as not required
JSX
mit
jenkins-infra/plugin-site
--- +++ @@ -27,9 +27,9 @@ } ReportAProblem.propTypes = { - reportProblemTitle: PropTypes.string.isRequired, - reportProblemUrl: PropTypes.string.isRequired, - reportProblemRelativeSourcePath: PropTypes.string.isRequired + reportProblemTitle: PropTypes.string, + reportProblemUrl: PropTypes.string, +...
b8a0d52d9721809006d91ec858a9f68bd8528619
app/assets/javascripts/components/ui/accordion.js.jsx
app/assets/javascripts/components/ui/accordion.js.jsx
'use strict' const Icon = require('./icon.js.jsx') const Accordion = React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, }, getInitialState() { return { open: true } }, render() { let content let chevron if (this.state.open) { content = <div cla...
'use strict' import Icon from './icon.js.jsx' const Accordion = React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, }, getInitialState() { return { open: true } }, render() { let content = null, chevron = null if (this.state.open) { content ...
Make the accordions less obnoxious
Make the accordions less obnoxious
JSX
agpl-3.0
assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta
--- +++ @@ -1,6 +1,6 @@ 'use strict' -const Icon = require('./icon.js.jsx') +import Icon from './icon.js.jsx' const Accordion = React.createClass({ @@ -15,24 +15,26 @@ }, render() { - let content - let chevron + let content = null, + chevron = null if (this.state.open) { ...
31655d7f11954b3daacdbc4601cedd389b581d00
src/components/overflow-menu/overflow-menu.jsx
src/components/overflow-menu/overflow-menu.jsx
/* eslint-disable react/jsx-no-bind */ import React, {useState} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Dropdown from '../dropdown/dropdown.jsx'; import overflowIcon from './overflow-icon.svg'; import './overflow-menu.scss'; const OverflowMenu = ({children, dropd...
/* eslint-disable react/jsx-no-bind */ import React, {useState} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Dropdown from '../dropdown/dropdown.jsx'; import overflowIcon from './overflow-icon.svg'; import './overflow-menu.scss'; const OverflowMenu = ({children, dropd...
Fix issue where multiple overflow menus could be opened at once
Fix issue where multiple overflow menus could be opened at once
JSX
bsd-3-clause
LLK/scratch-www,LLK/scratch-www
--- +++ @@ -13,7 +13,9 @@ return ( <div className={classNames('overflow-menu-container', className)}> <button - className="overflow-menu-trigger ignore-react-onclickoutside" + className={classNames('overflow-menu-trigger', { + 'ignore-react-o...
551a4ac89334941ab75ba911d2da299c9251acec
src/barchart/BarContainer.jsx
src/barchart/BarContainer.jsx
'use strict'; const React = require('react'); const Bar = require('./Bar'); const shade = require('../utils').shade; module.exports = React.createClass({ propTypes: { fill: React.PropTypes.string, onMouseOver: React.PropTypes.func, onMouseLeave: React.PropTypes.func, dataPoint: React.PropTypes.any...
'use strict'; const React = require('react'); const { findDOMNode } = require('react-dom'); const Bar = require('./Bar'); const shade = require('../utils').shade; module.exports = React.createClass({ propTypes: { fill: React.PropTypes.string, onMouseOver: React.PropTypes.func, onMouseLeave: React.Prop...
Make test pass by updating code to latest
Make test pass by updating code to latest
JSX
mit
yang-wei/rd3
--- +++ @@ -1,6 +1,7 @@ 'use strict'; const React = require('react'); +const { findDOMNode } = require('react-dom'); const Bar = require('./Bar'); const shade = require('../utils').shade; @@ -29,7 +30,7 @@ }, _animateBar() { - const rect = this.getDOMNode().getBoundingClientRect(); + const rect ...
a8e3494a64450bc82d0bd331865a0a95fde5003d
client/src/components/App.jsx
client/src/components/App.jsx
export default class App extends React.Component () { constructor(props) { super(props); } render() { return ( <div>Hello World!</div> ); } }
export default class App extends React.Component () { constructor(props) { super(props); } render() { return ( <div>Hello World!</div> ); } }
Add react router and server middleware
Add react router and server middleware
JSX
mit
folksy-squid/Picky-Notes,inspiredtolive/Picky-Notes,folksy-squid/Picky-Notes,inspiredtolive/Picky-Notes,derektliu/Picky-Notes,derektliu/Picky-Notes,derektliu/Picky-Notes,inspiredtolive/Picky-Notes,folksy-squid/Picky-Notes
--- +++ @@ -8,4 +8,3 @@ ); } } -
4679d5644be3598d2ad70a0398bec882d5ad782c
imports/ui/main-nav-bar.jsx
imports/ui/main-nav-bar.jsx
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { Link } from 'react-router'; export default class MainNavBar extends React.Component { constructor(props, context) { super(props, context); this.isActive = this.isActive.bind(this); } isActive(view) { return ...
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { Link } from 'react-router'; export default class MainNavBar extends React.Component { constructor(props, context) { super(props, context); this.isActive = this.isActive.bind(this); } isActive(view) { return t...
Fix wrong prop type validation in main nav bar
Fix wrong prop type validation in main nav bar
JSX
mit
minden/data-furnace,minden/data-furnace
--- +++ @@ -7,7 +7,6 @@ super(props, context); this.isActive = this.isActive.bind(this); } - isActive(view) { return this.context.router.isActive(view); @@ -41,6 +40,5 @@ } MainNavBar.contextTypes = { - router: React.PropTypes.func.isRequired, - history: React.PropTypes.object.isRequired,...
15c74d998b97f14c6a1817653e8ac48d290b9477
src/containers/green-flag-overlay.jsx
src/containers/green-flag-overlay.jsx
import bindAll from 'lodash.bindall'; import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import VM from 'scratch-vm'; import Box from '../components/box/box.jsx'; import greenFlag from '../components/green-flag/icon--green-flag.svg'; class GreenFlagOverlay extends Reac...
import bindAll from 'lodash.bindall'; import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import VM from 'scratch-vm'; import Box from '../components/box/box.jsx'; import greenFlag from '../components/green-flag/icon--green-flag.svg'; class GreenFlagOverlay extends Reac...
Remove isStarted prop from GreenFlagOverlay
Remove isStarted prop from GreenFlagOverlay Since #3885, the GreenFlagOverlay has been hidden by the Stage component instead of having to hide itself if the project has been started. Thus there's no need for GreenFlagOverlay to know whether the project has been started.
JSX
bsd-3-clause
LLK/scratch-gui,LLK/scratch-gui
--- +++ @@ -21,8 +21,6 @@ } render () { - if (this.props.isStarted) return null; - return ( <Box className={this.props.wrapperClass} @@ -42,13 +40,11 @@ GreenFlagOverlay.propTypes = { className: PropTypes.string, - isStarted: PropTypes.bool, vm...
9b513ed7646014d2a73cdfc1829714306319e417
src/js/gui/dialogs/addLayerDialog.jsx
src/js/gui/dialogs/addLayerDialog.jsx
import React from "react"; import { Button, TextInput } from "../guiComponents.jsx"; import PubSub from "../../event/pubSub.js"; import Events from "../../event/events.js"; export default class AddLayerDialog extends React.Component { constructor(props) { super(props); this.state = { layerNameText: "" }; } ...
import React from "react"; import { Button, TextInput } from "../guiComponents.jsx"; import PubSub from "../../event/pubSub.js"; import Events from "../../event/events.js"; export default class AddLayerDialog extends React.Component { constructor(props) { super(props); this.state = { layerNameText: "" }; } ...
Remove unnecessary onsubmit from add layer dialog
Remove unnecessary onsubmit from add layer dialog
JSX
unknown
MagnonGames/DTile,theMagnon/DTile,MagnonGames/DTile,theMagnon/DTile,MagnonGames/DTile,theMagnon/DTile
--- +++ @@ -29,7 +29,7 @@ render() { return ( - <form onSubmit={ e => { this.success(e); } } onsubmit="return false"> + <form onSubmit={ e => { this.success(e); } }> <h2 className="primary">Add Layer</h2> <TextInput name="layerName" label="Layer Name" value={ this.state.layerNameText }
42a3759cc05e83691be980209edf184e78cdd443
src/renderer/modal/modalAutoUpdateDownloaded/view.jsx
src/renderer/modal/modalAutoUpdateDownloaded/view.jsx
import React from 'react'; import { ipcRenderer } from 'electron'; import { Modal } from 'modal/modal'; import Button from 'component/button'; class ModalAutoUpdateDownloaded extends React.PureComponent { render() { const { closeModal, declineAutoUpdate } = this.props; return ( <Modal isOpen ...
// @flow import React from 'react'; import { ipcRenderer } from 'electron'; import { Modal } from 'modal/modal'; import Button from 'component/button'; type Props = { closeModal: any => any, declineAutoUpdate: () => any, }; class ModalAutoUpdateDownloaded extends React.PureComponent<Props> { constructor(props: ...
Disable confirm button after pressing "Use It Now" button
Disable confirm button after pressing "Use It Now" button Closes #1823
JSX
mit
lbryio/lbry-electron,lbryio/lbry-electron,lbryio/lbry-app,lbryio/lbry-app,lbryio/lbry-electron
--- +++ @@ -1,9 +1,23 @@ +// @flow import React from 'react'; import { ipcRenderer } from 'electron'; import { Modal } from 'modal/modal'; import Button from 'component/button'; -class ModalAutoUpdateDownloaded extends React.PureComponent { +type Props = { + closeModal: any => any, + declineAutoUpdate: () => ...
280dfce1a665fec82384a73d808c17bbf2acbc16
app/client/components/layouts/main/MainHeader.jsx
app/client/components/layouts/main/MainHeader.jsx
Camino.MainHeader = React.createClass({ mixins: [ReactMeteorData], getMeteorData() { return { currentUser: Meteor.user() } }, handleLogout() { Meteor.logout(); }, render() { let loginButton; let { currentUser } = this.data; if (current...
Camino.MainHeader = React.createClass({ mixins: [ReactMeteorData], getMeteorData() { return { currentUser: Meteor.user() }; }, handleLogout() { Meteor.logout(() => { FlowRouter.go('Login'); }); }, render() { let logoutButton; ...
Add redirect on log out and remove initial header
Add redirect on log out and remove initial header
JSX
mit
fjaguero/camino,fjaguero/camino
--- +++ @@ -3,46 +3,29 @@ getMeteorData() { return { currentUser: Meteor.user() - } + }; }, handleLogout() { - Meteor.logout(); + Meteor.logout(() => { + FlowRouter.go('Login'); + }); }, render() { - let loginButton; + ...
67be61dc5def00c154874988f49c66171fd68fcd
webapp/src/components/molecules/highcharts/MapChart.jsx
webapp/src/components/molecules/highcharts/MapChart.jsx
import React from 'react' import HighChart from 'components/molecules/highcharts/HighChart' import format from 'utilities/format' class MapChart extends HighChart { setConfig () { this.config = { mapNavigation: { enabled: true, buttonOptions: { verticalAlign: 'bottom' } ...
import React from 'react' import HighChart from 'components/molecules/highcharts/HighChart' import format from 'utilities/format' class MapChart extends HighChart { setConfig () { this.config = { mapNavigation: { enabled: true, enableMouseWheelZoom: false, buttonOptions: { ...
Disable map zoom on mouse scroll
Disable map zoom on mouse scroll
JSX
agpl-3.0
unicef/rhizome,unicef/rhizome,unicef/rhizome,unicef/rhizome
--- +++ @@ -8,6 +8,7 @@ this.config = { mapNavigation: { enabled: true, + enableMouseWheelZoom: false, buttonOptions: { verticalAlign: 'bottom' }
398eb3a52a40c8018ac3eab8842e6e76f51128de
client/app/bundles/RentersRights/components/ReportIssue.jsx
client/app/bundles/RentersRights/components/ReportIssue.jsx
import React from 'react'; import RentersLayout from './RentersLayout' export default class ReportIssue extends React.Component { /* render() { const { locale } = this.props; <Renters Layout locale={locale}> */ render() { const {} = this.props; return ( <RentersLayout> <div cla...
import React from 'react'; import RentersLayout from './RentersLayout' export default class ReportIssue extends React.Component { /* render() { const { locale } = this.props; <Renters Layout locale={locale}> */ render() { const {} = this.props; return ( <RentersLayout> <div classNam...
Add function for parsing .tsv file
Add function for parsing .tsv file
JSX
mit
codeforsanjose/renters-rights,codeforsanjose/renters-rights,codeforsanjose/renters-rights
--- +++ @@ -7,11 +7,11 @@ const { locale } = this.props; <Renters Layout locale={locale}> - */ + */ render() { - + const {} = this.props; - + return ( <RentersLayout> <div className="content-container language-paragraph">
30807c362ad0d55de403b647123ae38ea110f39a
app/assets/javascripts/components/ajax_checkbox.js.jsx
app/assets/javascripts/components/ajax_checkbox.js.jsx
var AjaxCheckbox = React.createClass({ getInitialState: function() { return {state: "default", checked: this.props.checked} }, success: function() { this.setState({state: "default", checked: !this.state.checked}); }, error: function(data) { console.error("ERROR DURING AJAX: " + data.responseText...
var AjaxCheckbox = React.createClass({ getInitialState: function() { return {state: "default", checked: this.props.checked} }, success: function() { this.setState({state: "default", checked: !this.state.checked}); }, error: function(data) { console.error("ERROR DURING AJAX: " + data.responseText...
Fix ajax checkbox to use newer ReactDOM function.
Fix ajax checkbox to use newer ReactDOM function.
JSX
mit
nilenso/reviews,nilenso/reviews,nilenso/reviews
--- +++ @@ -13,7 +13,7 @@ }, handleClick: function() { - if($(this.refs.checkbox.getDOMNode()).is(":checked")) { + if($(ReactDOM.findDOMNode(this.refs.checkbox)).is(":checked")) { createReview(this.props.reviewer_id, this.props.reviewee_id,this.success, this.error); } else { destroyRe...
60b8c7a448cdf17677ae9383e4c0dcc7fb6fcbe1
app/scripts/components/Root/index.jsx
app/scripts/components/Root/index.jsx
import React from 'react'; import WelcomeModal from '../Modal/WelcomeModal'; class Root extends React.Component { constructor() { super(); this.state = { modalWelcomeOpen: false }; } componentDidMount() { if (sessionStorage.getItem('modalWelcomeOpened') === false || sessionStorage.g...
import React from 'react'; import WelcomeModal from '../Modal/WelcomeModal'; class Root extends React.Component { constructor() { super(); this.state = { modalWelcomeOpen: false }; } componentDidMount() { if (sessionStorage.getItem('modalWelcomeOpened') === false || sessionStorage.g...
Hide beta modal in embed page
Hide beta modal in embed page
JSX
mit
resource-watch/prep-app,resource-watch/prep-app
--- +++ @@ -13,26 +13,32 @@ componentDidMount() { if (sessionStorage.getItem('modalWelcomeOpened') === false || sessionStorage.getItem('modalWelcomeOpened') === null) { + this.setModalWelcome(); + } + } + + setModalWelcome() { + if (this.props.location.pathname.indexOf('embed') === -1) { ...
816b4203ee689e7e126d4e7037c68295ace8db46
src/components/SearchBar/SearchBarContainer.jsx
src/components/SearchBar/SearchBarContainer.jsx
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import SearchBar from './SearchBar' import * as Actions from '../../actions' function mapStateToProps(state) { return { value: state.filter.query } } function mapDispatchToProps(dispatch) { return { onChange(query) { ...
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import SearchBar from './SearchBar' import * as Actions from '../../actions' function mapStateToProps(state) { return { value: state.filter.query } } function mapDispatchToProps(dispatch) { return { onChange(evt) { di...
Fix SearchBar output incorrect object instead of an input text
Fix SearchBar output incorrect object instead of an input text
JSX
mit
rickychien/comiz,rickychien/comiz
--- +++ @@ -13,8 +13,8 @@ function mapDispatchToProps(dispatch) { return { - onChange(query) { - dispatch(Actions.filterQuery(query)) + onChange(evt) { + dispatch(Actions.filterQuery(evt.target.value)) } } }
f6d08547fd7099e6691fe70813b7efe84566ae31
src/store.jsx
src/store.jsx
import { createStore } from 'redux' import rootReducer from './reducers' let store = createStore(rootReducer) export default store
import { createStore, compose } from 'redux' import rootReducer from './reducers' const initialState = {} const middleware = compose( window.devToolsExtension && window.devToolsExtension() ) let store = createStore(rootReducer, initialState, middleware) export default store
Add hooks for Redux DevTools Extension
Add hooks for Redux DevTools Extension
JSX
mit
OddEssay/react-seed,OddEssay/react-seed
--- +++ @@ -1,6 +1,12 @@ -import { createStore } from 'redux' +import { createStore, compose } from 'redux' import rootReducer from './reducers' -let store = createStore(rootReducer) +const initialState = {} + +const middleware = compose( + window.devToolsExtension && window.devToolsExtension() +) + +let store = ...
ba6c7088285d3fcb5e9d5e30a57eaa57276153ef
specs/components/Form.spec.jsx
specs/components/Form.spec.jsx
import React from "react"; import loremIpsum from "lorem-ipsum"; import Form from "../../src/components/Form"; import Field from "../../src/components/Field"; import TextInput from "../../src/components/TextInput"; describe("Form", function() { this.header(`## Form`); // Markdown. before(() => { function hand...
import React from "react"; import loremIpsum from "lorem-ipsum"; import Form from "../../src/components/Form"; import Field from "../../src/components/Field"; import EmailInput from "../../src/components/EmailInput"; import PasswordInput from "../../src/components/PasswordInput"; describe("Form", function() { this.h...
Use email and password in the form example
Use email and password in the form example
JSX
mit
signal/sprinkles-ui,signal/sprinkles-ui
--- +++ @@ -2,7 +2,8 @@ import loremIpsum from "lorem-ipsum"; import Form from "../../src/components/Form"; import Field from "../../src/components/Field"; -import TextInput from "../../src/components/TextInput"; +import EmailInput from "../../src/components/EmailInput"; +import PasswordInput from "../../src/compo...
9d0ee3ddaa61d65ae74ce7b4ea20600ea979caba
app/scripts/components/Dashboards/DashboardDetailTools.jsx
app/scripts/components/Dashboards/DashboardDetailTools.jsx
import React from 'react'; import Card from '../Cards/Card'; function DashboardDetailTools(props) { return ( props.data.length ? <div className="row align-stretch"> {props.data.map((card, index) => ( <div className="columns small-12 medium-6" key={`tool-card-${index}`} ...
import React from 'react'; import Card from '../Cards/Card'; function DashboardDetailTools(props) { return ( props.data.length ? <div className="row align-stretch"> {props.data.map((card, index) => ( <div className="columns small-12 medium-6" key={`tool-card-${index}`} ...
Add partner logo in tools card
Add partner logo in tools card
JSX
mit
resource-watch/prep-app,resource-watch/prep-app
--- +++ @@ -21,6 +21,15 @@ {card.summary} </p> + {card.partner && + <a target="_blank" href={card.partner.href}> + <img + src={config.apiUrl + card.partner.images.logo} + className="logo" + alt={car...
be49e209bbb7b28b1e51e8725fb65620241842c7
src/components/video/video.jsx
src/components/video/video.jsx
const PropTypes = require('prop-types'); const React = require('react'); const classNames = require('classnames'); require('./video.scss'); const Video = props => ( <div className={classNames('video-player', props.className)}> <iframe allowFullScreen // allowFullScreen is legacy, c...
const PropTypes = require('prop-types'); const React = require('react'); const classNames = require('classnames'); require('./video.scss'); const Video = props => ( <div className={classNames('video-player', props.className)}> <iframe allowFullScreen // allowFullScreen is legacy, c...
Revert "Add ability to display YouTube in addition to Wistia"
Revert "Add ability to display YouTube in addition to Wistia" This reverts commit 8d758f0420b967aa5d3f9e9c14b9f9201c2702a6.
JSX
bsd-3-clause
LLK/scratch-www,LLK/scratch-www
--- +++ @@ -13,10 +13,7 @@ frameBorder="0" // deprecated attribute height={props.height} scrolling="no" // deprecated attribute - src={props.isYouTube ? - `https://www.youtube.com/embed/${props.videoId}?autoplay=1` : - `https://fast.wisti...
d63c03078ac440cf44f3cd980fe42eb055aa0ad6
src/elements/Button/Button.jsx
src/elements/Button/Button.jsx
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const Button = ({ children, type, strong=false, ...rest }) => { const classNames = classnames('button', typeClass(type), modeClass(strong)); return ( <button className={classNames} {...rest}> {children} ...
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const Button = ({ children, type, strong=false, ...rest }) => { const classNames = classnames('button', typeClass(type), modeClass(strong)); return ( <button className={classNames} {...rest}> {children} ...
Add 'white' type to button
Add 'white' type to button This feature is important for rendering buttons components inside colored background components.
JSX
apache-2.0
nwsapps/flashcards,nwsapps/flashcards
--- +++ @@ -27,7 +27,7 @@ } Button.propTypes = { - type: PropTypes.oneOf(['primary', 'link', 'info', 'success', 'warning', 'danger']), + type: PropTypes.oneOf(['primary', 'link', 'info', 'success', 'warning', 'danger', 'white']), strong: PropTypes.bool, };
3909310f1e092577aaf089fcb1e58052aa19bacd
src/pages/Home.jsx
src/pages/Home.jsx
import React from 'react' import CSSModules from 'react-css-modules' /* Containers */ import LatestEvent from 'containers/LatestEvent' import Blurb from 'containers/Blurb' import Navbar from 'containers/Navbar' import Highlights from 'containers/Highlights' /* Components */ import Cover from 'components/Cover' import...
import React from 'react' import CSSModules from 'react-css-modules' /* Containers */ import LatestEvent from 'containers/LatestEvent' import Blurb from 'containers/Blurb' import Navbar from 'containers/Navbar' import Highlights from 'containers/Highlights' import FooterCard from 'containers/FooterCard' /* Components...
Put footercard in home page.
Put footercard in home page.
JSX
mit
sunyang713/sabor-website,sunyang713/sabor-website
--- +++ @@ -6,11 +6,13 @@ import Blurb from 'containers/Blurb' import Navbar from 'containers/Navbar' import Highlights from 'containers/Highlights' +import FooterCard from 'containers/FooterCard' /* Components */ import Cover from 'components/Cover' import Footer from 'components/Footer' +/* Assets */ imp...
12a3d7c71f1288e312051a882d7ed5b6c1d9df71
client/components/InstanceTabs/index.jsx
client/components/InstanceTabs/index.jsx
'use strict'; import React from 'react'; import action from '../../actions'; import store from '../../store'; import { Tab, Tabs } from './draggable-tab'; class InstanceTabs extends React.Component { render() { return <Tabs style={ { display: this.props.instances.count() === 1 ? 'none' : 'block' } } onTab...
'use strict'; import React from 'react'; import action from '../../actions'; import store from '../../store'; import { Tab, Tabs } from './draggable-tab'; class InstanceTabs extends React.Component { render() { return <div style={ { display: this.props.instances.count() === 1 ? 'none' : 'block' } }> <Tabs...
Hide the tabar when there's only on instance
Hide the tabar when there's only on instance
JSX
mit
luin/medis,luin/medis
--- +++ @@ -7,26 +7,28 @@ class InstanceTabs extends React.Component { render() { - return <Tabs style={ { display: this.props.instances.count() === 1 ? 'none' : 'block' } } - onTabAddButtonClick={() => - store.dispatch(action('addInstance')) - } - onTabSelect={(key) => - store.d...
86358e1b717f707f6a255ab9926f841b0bffdbb8
client/components/main-layout/NavBar.jsx
client/components/main-layout/NavBar.jsx
import React from 'react'; import ReactDom from 'react-dom'; import { Link } from 'react-router'; export default class NavBar extends React.Component { render() { return ( <div className="nav-bar"> <div className="pure-menu-heading"> <Link className="home-link" to="/">Sentimize</Link> ...
import React from 'react'; import ReactDom from 'react-dom'; import { Link } from 'react-router'; export default class NavBar extends React.Component { render() { return ( <div className="nav-bar"> <div className="pure-menu-heading"> <Link className="home-link" to="/">Sentimize</Link> ...
Remove reports link from navbar
Remove reports link from navbar
JSX
mit
formidable-coffee/masterfully,chkakaja/sentimize,formidable-coffee/masterfully,chkakaja/sentimize
--- +++ @@ -14,7 +14,6 @@ <ul className="pure-menu-list"> <li className="pure-menu-item"><Link to="/record" className="pure-menu-link">Record</Link></li> <li className="pure-menu-item"><Link to="/sessions" className="pure-menu-link">Sessions</Link></li> - <li className=...
9645ade1bb0049ccfb223b711397bee629c6fd2a
app/javascript/forms/mappers/formFieldsMapper.jsx
app/javascript/forms/mappers/formFieldsMapper.jsx
import React from 'react'; import { formFieldsMapper, components } from '@data-driven-forms/pf3-component-mapper'; import { componentTypes } from '@@ddf'; import AsyncCredentials from '../../components/async-credentials/async-credentials'; import DualGroup from '../../components/dual-group'; import DualListSelect from...
import React from 'react'; import { formFieldsMapper, components } from '@data-driven-forms/pf3-component-mapper'; import { componentTypes } from '@@ddf'; import AsyncCredentials from '../../components/async-credentials/async-credentials'; import DualGroup from '../../components/dual-group'; import DualListSelect from...
Remove duplicated FieldArray component from the component mapper
Remove duplicated FieldArray component from the component mapper
JSX
apache-2.0
ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic
--- +++ @@ -22,7 +22,6 @@ hr: () => <hr />, 'password-field': PasswordField, 'validate-credentials': AsyncCredentials, - 'field-array': FieldArray, [componentTypes.SELECT]: props => <components.SelectField placeholder={`<${__('Choose')}>`} {...props} />, };
181fa40fb117a7a8c6bd32052a0bfe9910f67403
src/components/FormComponents/mixins/componentMixin.jsx
src/components/FormComponents/mixins/componentMixin.jsx
import React from 'react'; import Input from 'react-input-mask'; import { deepEqual } from '../../../util'; module.exports = { shouldComponentUpdate: function(nextProps, nextState) { // If a new value is set within state, re-render. if (this.state && this.state.hasOwnProperty('value') && this.state.value !==...
import React from 'react'; import Input from 'react-input-mask'; import { deepEqual } from '../../../util'; module.exports = { shouldComponentUpdate: function(nextProps, nextState) { // If a new value is set within state, re-render. if (this.state && this.state.hasOwnProperty('value') && this.state.value !==...
Enable component update when isPristine changes
Enable component update when isPristine changes In cases where form values do not change, but the pristineness does (for example, when the form is submitted without any modifications to the fields), the form components would not update to show any validation errors. This is now corrected with this fix.
JSX
mit
formio/react-formio
--- +++ @@ -9,6 +9,11 @@ return true; } + // If the pristineness changes without a value change, re-render. + if (this.state && this.state.hasOwnProperty('isPristine') && this.state.isPristine !== nextState.isPristine) { + return true; + } + // If a new value is passed in, re-rend...
0fb54b2e498e1d46cda0b7e3c4e5624326740c2c
app/javascript/components/meeting/agendum/AgendumDetails.jsx
app/javascript/components/meeting/agendum/AgendumDetails.jsx
import React from 'react'; import AgendumNotes from '../agendum_note/AgendumNotes'; const AgendumDetails = ({ agendum, agendumNotes, agendumUploads }) => { if (!agendum) { return ( <p className="padding-sides-default"> Select an agendum to see details. </p> ); } return ( <div cl...
import React from 'react'; import AgendumNotes from '../agendum_note/AgendumNotes'; const AgendumDetails = ({ agendum, agendumNotes, agendumUploads }) => { if (!agendum) { return ( <p className="padding-sides-default"> Select an agendum to see details. </p> ); } const determinefileI...
Fix styles for uploads within agendum details
Fix styles for uploads within agendum details
JSX
mit
robyparr/adjourn,robyparr/adjourn,robyparr/adjourn
--- +++ @@ -11,6 +11,9 @@ ); } + const determinefileIcon = upload => upload.content_type.includes('image') ? 'fa-image' : 'fa-file'; + const humanizedFileSize = upload => (upload.file_size / 1024).toFixed(2); + return ( <div className="agendum-details padding-sides-default padding-bottom-default">...
186c4cae43db21d621e0bd136e4616acebe523b9
ui/src/message_popup/renderers/response_with_past_notes.jsx
ui/src/message_popup/renderers/response_with_past_notes.jsx
/* @flow weak */ import React from 'react'; // This shows a past set of notes from previous scenes, for writing feedback based on those notes. // `children` is intended to be an response like MinimalTextResponse. export default React.createClass({ displayName: 'ResponseWithNotes', propTypes: { pastNotes: Rea...
/* @flow weak */ import React from 'react'; // This shows a past set of notes from previous scenes, for writing feedback based on those notes. // `children` is intended to be an response like MinimalTextResponse. export default React.createClass({ displayName: 'ResponseWithNotes', propTypes: { pastNotes: Rea...
Fix missing key in ResponseWithNotes
Fix missing key in ResponseWithNotes
JSX
mit
mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows
--- +++ @@ -19,7 +19,7 @@ <div> <div style={styles.container}> <div>Your notes:</div> - <ul>{pastNotes.map(note => <li style={{}}>{note}</li>)}</ul> + <ul>{pastNotes.map(note => <li key={note} style={{}}>{note}</li>)}</ul> </div> {children} </div>
ebd03ec1bdad17e0568f326fa2c13b9799312e36
src/sentry/static/sentry/app/components/narrowLayout.jsx
src/sentry/static/sentry/app/components/narrowLayout.jsx
import jQuery from 'jquery'; import React from 'react'; import Footer from '../components/footer'; import Sidebar from '../components/sidebar'; const NarryLayout = React.createClass({ componentWillMount() { jQuery(document.body).addClass('narrow'); }, componentWillUnmount() { jQuery(document.body).remo...
import jQuery from 'jquery'; import React from 'react'; import Footer from '../components/footer'; const NarryLayout = React.createClass({ componentWillMount() { jQuery(document.body).addClass('narrow'); }, componentWillUnmount() { jQuery(document.body).removeClass('narrow'); }, render() { ret...
Remove sidebar from react modals
Remove sidebar from react modals
JSX
bsd-3-clause
JamesMura/sentry,mvaled/sentry,BuildingLink/sentry,jean/sentry,jean/sentry,zenefits/sentry,ifduyue/sentry,BuildingLink/sentry,gencer/sentry,gencer/sentry,mvaled/sentry,zenefits/sentry,JackDanger/sentry,alexm92/sentry,looker/sentry,beeftornado/sentry,ifduyue/sentry,beeftornado/sentry,looker/sentry,JackDanger/sentry,look...
--- +++ @@ -2,7 +2,6 @@ import React from 'react'; import Footer from '../components/footer'; -import Sidebar from '../components/sidebar'; const NarryLayout = React.createClass({ componentWillMount() { @@ -16,9 +15,14 @@ render() { return ( <div className="app"> - <Sidebar /> + ...
c760bd9c8d6c22581ed5c6c10d46976891df1b7c
src/components/notes/Layout.jsx
src/components/notes/Layout.jsx
import React from 'react'; import * as firebase from 'firebase'; import { config } from '../../config'; import Note from './Note'; import './Layout.scss'; export default class Layout extends React.Component { constructor() { super(); this.state = { notes: [], }; } componentDidMount() { fir...
import React from 'react'; import * as firebase from 'firebase'; import { config } from '../../config'; import Note from './Note'; import './Layout.scss'; export default class Layout extends React.Component { constructor() { super(); this.state = { notes: [], }; } componentDidMount() { fir...
Replace index-based key with database entry ID Remove 'index as a key' anti-pattern
Replace index-based key with database entry ID Remove 'index as a key' anti-pattern
JSX
mit
emyarod/refuge,emyarod/refuge
--- +++ @@ -16,10 +16,9 @@ firebase.initializeApp(config); const notesRef = firebase.database().ref('notes'); notesRef.on('child_added', snapshot => { - // name object key after note title, assign note content to keyvalue - const { content, title } = snapshot.val(); - const note = {}; - ...
d0732c4ac9586508e5a78790ebf854c09c3c9042
packages/nova-base-components/lib/users/UsersAvatar.jsx
packages/nova-base-components/lib/users/UsersAvatar.jsx
import { registerComponent } from 'meteor/nova:lib'; import React, { PropTypes, Component } from 'react'; import Users from 'meteor/nova:users'; import { Link } from 'react-router'; const UsersAvatar = ({user, size, link}) => { const sizes = { small: "20px", medium: "30px", large: "50px" } const aS...
import { registerComponent } from 'meteor/nova:lib'; import React, { PropTypes, Component } from 'react'; import Users from 'meteor/nova:users'; import { Link } from 'react-router'; const UsersAvatar = ({user, size, link}) => { const sizes = { small: "20px", medium: "30px", large: "50px" } const aS...
Add username tooltip to user's avatar. Nice in the commenters list of a PostItem.
Add username tooltip to user's avatar. Nice in the commenters list of a PostItem.
JSX
mit
Discordius/Lesswrong2,SachaG/Gamba,dominictracey/Telescope,bengott/Telescope,dominictracey/Telescope,SachaG/Gamba,Discordius/Telescope,SachaG/Zensroom,Discordius/Lesswrong2,manriquef/Vulcan,rtluu/immersive,Discordius/Lesswrong2,acidsound/Telescope,Discordius/Telescope,bshenk/projectIterate,Discordius/Lesswrong2,acidsou...
--- +++ @@ -16,18 +16,18 @@ display: "inline-block", height: sizes[size], width: sizes[size] - }; + }; const imgStyle = { borderRadius: "100%", display: "block", height: sizes[size], width: sizes[size] - }; + }; const avatarUrl = Users.avatar.getUrl(user); - const...
c3dfd40ba881efa61bb1955c6c164973e77c987b
src/components/AccountView.jsx
src/components/AccountView.jsx
import styles from '../styles/accountView' import React from 'react' import ReactMarkdown from 'react-markdown' import { translate } from 'cozy-ui/react/helpers/i18n' import PassphraseForm from './PassphraseForm' import Input from './Input' import Select from './Select' const LANG_OPTIONS = ['en', 'fr'] const Accoun...
import styles from '../styles/accountView' import React from 'react' import ReactMarkdown from 'react-markdown' import { translate } from 'cozy-ui/react/helpers/i18n' import PassphraseForm from './PassphraseForm' import Input from './Input' import Select from './Select' const LANG_OPTIONS = ['en', 'fr'] const Accoun...
Switch locale and password position in form
[feat] Switch locale and password position in form
JSX
agpl-3.0
y-lohse/cozy-settings,y-lohse/cozy-settings
--- +++ @@ -15,7 +15,6 @@ <h2>{t('AccountView.title')}</h2> <Input name='email' type='email' {...fields.email} onChange={onFieldChange} /> <Input name='public_name' type='text' {...fields.public_name} onChange={onFieldChange} /> - <PassphraseForm {...passphrase} onSubmit={onPassphraseSubmit} /> ...
bf90e755abbdfdd989210a8112dddb38252e3b3c
web/components/header/index.jsx
web/components/header/index.jsx
var React = require('react'); var Router = require('react-router'); var Route = Router.Route; var Link = Router.Link; var Header = React.createClass({ render: function() { return ( <div> <nav className="navbar navbar-default navbar-fixed-top"> <div className=...
var React = require('react'); var Router = require('react-router'); var Route = Router.Route; var Link = Router.Link; var Header = React.createClass({ render: function() { return ( <div> <nav className="navbar navbar-default navbar-fixed-top"> <div className=...
Remove the 'active' class from the list item
Remove the 'active' class from the list item
JSX
mit
cheton/webappengine,cheton/webappengine,cheton/webappengine
--- +++ @@ -20,7 +20,7 @@ </div> <div className="navbar-collapse collapse" id="navbar-collapse"> <ul className="nav navbar-nav"> - <li className="active"><Link to="dashboard">Dashboard</Link></li> + ...
0b50dd5528ad62ef46586925275242720ac3c481
src/components/elements/search-form.jsx
src/components/elements/search-form.jsx
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import classnames from 'classnames'; import { preventDefault } from '../../utils'; export default class SearchForm extends React.Component { constructor(props) { super(props); this.state = { ...
import React from 'react'; import { browserHistory } from 'react-router'; import classnames from 'classnames'; import { preventDefault } from '../../utils'; export default class SearchForm extends React.Component { constructor(props) { super(props); this.state = { isFocused: false }; } refSe...
Remove unused import from SearchForm
Remove unused import from SearchForm
JSX
mit
clbn/freefeed-gamma,clbn/freefeed-gamma,clbn/freefeed-gamma
--- +++ @@ -1,5 +1,4 @@ import React from 'react'; -import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import classnames from 'classnames';
36075f8a0e2f9756d327946bc4792c59cf833b28
src/furniture/containers/addFurnitureForm.container.jsx
src/furniture/containers/addFurnitureForm.container.jsx
import React, { Component } from 'react'; import { Button, Input, Row, Col } from 'react-materialize'; import { reduxForm } from 'redux-form'; import { addFurniture } from '../actions/furniture.action.js'; class AddFurnitureForm extends Component { render() { const { fields: { itemName, price, description,...
import React, { Component } from 'react'; import { Button, Input, Row, Col } from 'react-materialize'; import { reduxForm } from 'redux-form'; import { addFurniture } from '../actions/furniture.action.js'; import { DatePicker } from 'material-ui/DatePicker' class AddFurnitureForm extends Component { render() { c...
Add Datepicker on add furniture form
Style: Add Datepicker on add furniture form
JSX
mit
Nailed-it/Designify,Nailed-it/Designify
--- +++ @@ -2,6 +2,7 @@ import { Button, Input, Row, Col } from 'react-materialize'; import { reduxForm } from 'redux-form'; import { addFurniture } from '../actions/furniture.action.js'; +import { DatePicker } from 'material-ui/DatePicker' class AddFurnitureForm extends Component { render() { @@ -9,6 +10,7 ...
316c0b06280bac8c24a322ff29e86699ae79cfff
test/index.jsx
test/index.jsx
// Import helpers import should from 'turris-test-helpers'; // Import app import App from '../src/app.jsx'; // Import other tests import './number-iterator.js'; import './find-primes.js'; describe('App suite', function() { it('Renders the main app container', function() { // const React = this.React; ...
// Import helpers import should from 'turris-test-helpers'; // Import app import App from '../src/app.jsx'; // Import other tests import './number-iterator.js'; import './find-primes.js'; describe('App suite', function() { it('Renders the main app container', function() { // const React = this.React; ...
Fix and extend multiplication table tests
Fix and extend multiplication table tests Should be checking number of <td>s per <tr> in <tbody>, not in the whole table; also, check for presence of horizontal and vertical headings.
JSX
cc0-1.0
acusti/primal-multiplication,acusti/primal-multiplication
--- +++ @@ -13,18 +13,21 @@ // const React = this.React; // const TestUtils = this.TestUtils; - // render + // Render App.start(); - // verify it exists + // Verify it exists document.getElementById('mainContainer').children.length.should.equal(1); ...
ea5489417d60093059ed389de95913fb47003850
client/components/Challenge.jsx
client/components/Challenge.jsx
import React from 'react'; require('./../../public/main.css'); class Challenge extends React.Component { constructor(props) { super(props); this.state = {}; console.log('props:', props); // console.log(this.state) this.updateChallenge = this.updateChallenge.bind(this); } updateChallenge(e) ...
import React from 'react'; require('./../../public/main.css'); class Challenge extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return ( <div> <strong><p> Challenge Text </p></strong> <div dangerouslySetInnerHTML={{__html: this.props.ch...
Make html render on page from server
Make html render on page from server
JSX
mit
OrderlyPhoenix/OrderlyPhoenix,OrderlyPhoenix/OrderlyPhoenix
--- +++ @@ -5,21 +5,13 @@ constructor(props) { super(props); this.state = {}; - console.log('props:', props); - // console.log(this.state) - this.updateChallenge = this.updateChallenge.bind(this); - } - - updateChallenge(e) { - this.setState({ - challenge: e.target.value - }); }...
53c174f20e97e0ee7a657cacc8b1c46f7eb4d041
src/components/SelectBox.jsx
src/components/SelectBox.jsx
import styles from '../styles/selectBox' import React from 'react' import ReactMarkdown from 'react-markdown' const LANGS_OPTIONS = ['en', 'fr'] const Option = ({t, inputData, optionValue, setValue}) => ( <option value={optionValue} selected={setValue === optionValue} > {t(`AccountView.${inputData}.$...
import styles from '../styles/selectBox' import React from 'react' import ReactMarkdown from 'react-markdown' const LANGS_OPTIONS = ['en', 'fr'] const Option = ({t, inputData, optionValue, setValue}) => ( <option value={optionValue} selected={setValue === optionValue} > {t(`AccountView.${inputData}.$...
Add target blank on help for translations link
[Chore] Add target blank on help for translations link
JSX
agpl-3.0
y-lohse/cozy-settings,y-lohse/cozy-settings
--- +++ @@ -36,11 +36,14 @@ } </select> <p className={styles['coz-desc']}> - <ReactMarkdown source={ - t(`AccountView.${inputData}.contrib`, { - url: 'http://cozy.io' - }) - } /> + <ReactMarkdown + source={ + t(`AccountView.${inputData}.contrib`, ...
77a7b523352c5985c82ec67c312437e64d5a98b1
ditto/static/tidy/js/formbuilder/components/editors/Text.jsx
ditto/static/tidy/js/formbuilder/components/editors/Text.jsx
import React, { PropTypes } from 'react'; import Row from './Row'; export default class Text extends React.Component { static propTypes = { maxChars: PropTypes.number, maxWords: PropTypes.number, isMultiline: PropTypes.bool, onChangeMaxChars: PropTypes.func, onChangeMaxWords: PropTypes.func, ...
import React, { PropTypes } from 'react'; import Row from './Row'; export default class Text extends React.Component { static propTypes = { maxChars: PropTypes.number, maxWords: PropTypes.number, isMultiline: PropTypes.bool, onChangeMaxChars: PropTypes.func, onChangeMaxWords: PropTypes.func, ...
Disable max words input unless multiline is selected
Disable max words input unless multiline is selected
JSX
bsd-3-clause
Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto
--- +++ @@ -19,7 +19,6 @@ render() { console.log('text props', this.props); - //disabled={!this.props.isMultiline} return ( <div> <Row errors={this.props.maxChars ? this.props.errors.maxChars : null}> @@ -32,16 +31,6 @@ onChange={(e) => this.props.onChangeMaxChars(...
42bae8555c21e4ef39ef6357f2e149c85575e9fb
app/assets/javascripts/components/chat_typing_label.js.jsx
app/assets/javascripts/components/chat_typing_label.js.jsx
(function(){ var ChatTypingLabel = React.createClass({ propTypes: { usernames: React.PropTypes.array }, render: function() { return <div> <span className="text-small gray-2">{this.message()}</span> </div> }, message: function() { var len = this.props.usernames.l...
(function(){ var ChatTypingLabel = React.createClass({ propTypes: { usernames: React.PropTypes.array }, render: function() { return <div> <span className="text-small gray-2">{this.message()}</span> </div> }, message: function() { var len = this.props.usernames.l...
Use triple equals for comparing numbers
Use triple equals for comparing numbers
JSX
agpl-3.0
assemblymade/meta,assemblymade/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,lachlanjc/meta,lachlanjc/meta
--- +++ @@ -14,9 +14,9 @@ message: function() { var len = this.props.usernames.length - if (len == 1) { + if (len === 1) { return <span><strong>{this.props.usernames[0]}</strong> is typing</span> - } else if (len == 2) { + } else if (len === 2) { return <span> ...
6ee2ac2578e09c93735e99df5f4a07bd3ef3d8fd
app/assets/javascripts/components/categories/category.jsx
app/assets/javascripts/components/categories/category.jsx
import React from 'react'; import CourseUtils from '../../utils/course_utils'; import moment from 'moment'; const Category = ({ course, category, remove, editable }) => { let removeButton; if (editable) { removeButton = <button className="button pull-right small danger" onClick={remove}>{I18n.t('categories.rem...
import React from 'react'; import CourseUtils from '../../utils/course_utils'; import moment from 'moment'; const Category = ({ course, category, remove, editable }) => { let removeButton; if (editable) { removeButton = <button className="button pull-right small danger" onClick={remove}>{I18n.t('categories.rem...
Fix Category link for non-en.wiki courses
Fix Category link for non-en.wiki courses
JSX
mit
WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard
--- +++ @@ -17,7 +17,7 @@ if (category.source === 'psid') { link = `https://petscan.wmflabs.org/?psid=${category.name}`; } else { - link = `https://en.wikipedia.org/wiki/${catName}`; + link = `https://${course.home_wiki.language}.${course.home_wiki.project}.org/wiki/${catName}`; } const lastUpd...
ceebe69862210293c757f8c7f5f65fd17698359f
packages/lesswrong/components/questions/AnswersSection.jsx
packages/lesswrong/components/questions/AnswersSection.jsx
import { Components, registerComponent } from 'meteor/vulcan:core'; import React from 'react'; import PropTypes from 'prop-types'; import withUser from '../common/withUser' const AnswersSection = ({post}) => { const { AnswersList, NewAnswerForm, currentUser } = Components return ( <div> {currentUser && ...
import { Components, registerComponent } from 'meteor/vulcan:core'; import React from 'react'; import PropTypes from 'prop-types'; import withUser from '../common/withUser' const AnswersSection = ({post, currentUser}) => { const { AnswersList, NewAnswerForm } = Components return ( <div> {currentUser && ...
Fix NewAnswerForm for logged-in users
Fix NewAnswerForm for logged-in users
JSX
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -3,8 +3,8 @@ import PropTypes from 'prop-types'; import withUser from '../common/withUser' -const AnswersSection = ({post}) => { - const { AnswersList, NewAnswerForm, currentUser } = Components +const AnswersSection = ({post, currentUser}) => { + const { AnswersList, NewAnswerForm } = Components r...
85844c37f9b026a0aad0b90c5dbbc4b9412f44c7
src/js/components/TabPaneComponent.jsx
src/js/components/TabPaneComponent.jsx
import classNames from "classnames"; import React from "react/addons"; var TabPaneComponent = React.createClass({ displayName: "TabPaneComponent", propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isActive: React.PropTypes.bool, onActivate: React.PropTypes.func }, ...
import classNames from "classnames"; import React from "react/addons"; var TabPaneComponent = React.createClass({ displayName: "TabPaneComponent", propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isActive: React.PropTypes.bool }, getDefaultProps: function () { r...
Remove unused callback from tab pane component
Remove unused callback from tab pane component
JSX
apache-2.0
mesosphere/marathon-ui,cribalik/marathon-ui,mesosphere/marathon-ui,cribalik/marathon-ui
--- +++ @@ -7,20 +7,12 @@ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, - isActive: React.PropTypes.bool, - onActivate: React.PropTypes.func - }, - - componentDidUpdate: function (prevProps) { - if (!prevProps.isActive && this.props.isActive) { - this.pro...
d7eb3182579c83510cae989525455c8cf92f4e8e
lib/src/_shared/MaskedInput.jsx
lib/src/_shared/MaskedInput.jsx
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import MaskedInput from 'react-text-mask'; export default class Input extends PureComponent { static propTypes = { mask: PropTypes.any, value: PropTypes.string, inputRef: PropTypes.func.isRequired, } static defaultProp...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import MaskedInput from 'react-text-mask'; export default class Input extends PureComponent { static propTypes = { mask: PropTypes.any, inputRef: PropTypes.func.isRequired, } static defaultProps = { mask: undefined, ...
Revert ignoring mask if value is empty code
Revert ignoring mask if value is empty code
JSX
mit
mbrookes/material-ui,rscnt/material-ui,oliviertassinari/material-ui,mui-org/material-ui,callemall/material-ui,callemall/material-ui,callemall/material-ui,rscnt/material-ui,rscnt/material-ui,oliviertassinari/material-ui,mbrookes/material-ui,callemall/material-ui,dmtrKovalenko/material-ui-pickers,oliviertassinari/materia...
--- +++ @@ -5,28 +5,18 @@ export default class Input extends PureComponent { static propTypes = { mask: PropTypes.any, - value: PropTypes.string, inputRef: PropTypes.func.isRequired, } static defaultProps = { - value: undefined, mask: undefined, } - getMask = () => { - if (th...
7ddf931b396d9621bbf42c4227e8487cdb612a98
packages/lesswrong/components/alignment-forum/AlignmentForumHome.jsx
packages/lesswrong/components/alignment-forum/AlignmentForumHome.jsx
import { Components, registerComponent } from 'meteor/vulcan:core'; import React from 'react'; import { Link } from 'react-router'; import Users from "meteor/vulcan:users"; import withUser from '../common/withUser'; const AlignmentForumHome = ({currentUser}) => { let recentPostsTerms = {view: 'new', limit: 10, forum...
import { Components, registerComponent } from 'meteor/vulcan:core'; import React from 'react'; import { Link } from 'react-router'; import Users from "meteor/vulcan:users"; import withUser from '../common/withUser'; const AlignmentForumHome = ({currentUser}) => { let recentPostsTerms = {view: 'new', limit: 10, forum...
Fix sticky posts for alignment forum
Fix sticky posts for alignment forum
JSX
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope
--- +++ @@ -5,7 +5,7 @@ import withUser from '../common/withUser'; const AlignmentForumHome = ({currentUser}) => { - let recentPostsTerms = {view: 'new', limit: 10, forum: true} + let recentPostsTerms = {view: 'new', limit: 10, forum: true, af: true} const renderRecentPostsTitle = () => <div className="rec...
dca2e6fec3ad3215e9a19694ce18f633c39a6e9d
client/activities/activity-back-button.jsx
client/activities/activity-back-button.jsx
import React from 'react' import { connect } from 'react-redux' import styled from 'styled-components' import { goBack } from '../activities/action-creators' import IconButton from '../material/icon-button.jsx' import BackIcon from '../icons/material/baseline-arrow_back-24px.svg' const BackButton = styled(IconButto...
import React from 'react' import { connect } from 'react-redux' import styled from 'styled-components' import { goBack } from '../activities/action-creators' import IconButton from '../material/icon-button.jsx' import BackIcon from '../icons/material/baseline-arrow_back-24px.svg' const BackButton = styled(IconButto...
Fix the back button disappearing when clicking off the map preferences overlay.
Fix the back button disappearing when clicking off the map preferences overlay.
JSX
mit
ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery
--- +++ @@ -14,12 +14,24 @@ @connect(state => ({ activityOverlay: state.activityOverlay })) export default class ActivityBackButton extends React.Component { + hasBeenRendered = false + shouldShow = true + render() { const { activityOverlay } = this.props - if (activityOverlay.history.size < 2) ret...
d6e50e3a4c6266d9b5e7dbe5fd0aa8c7f031f10c
app/scripts/pages/nexgddp-embed/nexgddp-embed-component.jsx
app/scripts/pages/nexgddp-embed/nexgddp-embed-component.jsx
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import isEmpty from 'lodash/isEmpty'; // Components import NexGDDPTool from 'components/nexgddp-tool/NexGDDPTool'; class NexGDDPEmbedPage extends PureComponent { componentDidMount() { if (isEmpty(this.props.dataset)) { this...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import isEmpty from 'lodash/isEmpty'; // Components import NexGDDPTool from 'components/nexgddp-tool/NexGDDPTool'; class NexGDDPEmbedPage extends PureComponent { componentDidMount() { if (isEmpty(this.props.dataset)) { this...
Use the dataset's metadata name for the NexGDDP's embeds
Use the dataset's metadata name for the NexGDDP's embeds Because the NexGDDP dataset are actually spread into several datasets in the API, when sharing an embed of a NexGDDP visualisation, we would display the name of a specific dataset instead of the one of the "group". By using the metadata's title, we avoid this pr...
JSX
mit
resource-watch/prep-app,resource-watch/prep-app
--- +++ @@ -23,9 +23,13 @@ render() { const { dataset, embed } = this.props; + const title = dataset.metadata && dataset.metadata.length && dataset.metadata[0].attributes.name + ? dataset.metadata[0].attributes.name + : dataset.name; + return ( <div className="-theme-2"> - <h...
1df5543bf9c96c2fe80afa9fa800a028a846e445
react-router/components/Nav.jsx
react-router/components/Nav.jsx
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; var React = require('react'); var Link = require('react-router').Link; var StateMixin = require('react-router').State; var Nav = React.createClass({ mixins: [StateMixi...
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; var React = require('react'); var Link = require('react-router').Link; var Nav = React.createClass({ contextTypes: { router: React.PropTypes.func.isRequired ...
Move from StateMixin to contextTypes
Move from StateMixin to contextTypes [context docs](https://github.com/rackt/react-router/blob/4ec1f289962217dbd84a8f60d306cfd4d45bf561/docs/api/RouterContext.md) as of this commit.
JSX
bsd-3-clause
src-code/flux-examples,eriknyk/flux-examples,jeffreywescott/flux-examples,JonnyCheng/flux-examples,devypt/flux-examples,ybbkrishna/flux-examples
--- +++ @@ -5,15 +5,16 @@ 'use strict'; var React = require('react'); var Link = require('react-router').Link; -var StateMixin = require('react-router').State; var Nav = React.createClass({ - mixins: [StateMixin], + contextTypes: { + router: React.PropTypes.func.isRequired + }, render: func...
61834dfed6b37502262fb7c281b7e9afb8d3e445
src/js/components/MemoryFieldComponent.jsx
src/js/components/MemoryFieldComponent.jsx
var React = require("react/addons"); var MemoryFieldComponent = React.createClass({ displayName: "MemoryFieldComponent", propTypes: { megabytes: React.PropTypes.number.isRequired }, render() { // For a documentation of the different unit prefixes please refer to: // https://en.wikipedia.org/wiki/Te...
var React = require("react/addons"); var MemoryFieldComponent = React.createClass({ displayName: "MemoryFieldComponent", propTypes: { megabytes: React.PropTypes.number.isRequired }, render() { // For a documentation of the different unit prefixes please refer to: // https://en.wikipedia.org/wiki/Te...
Use var instead of const and let in function scopes for consistency
Use var instead of const and let in function scopes for consistency
JSX
apache-2.0
cribalik/marathon-ui,mesosphere/marathon-ui,cribalik/marathon-ui,mesosphere/marathon-ui
--- +++ @@ -8,11 +8,11 @@ render() { // For a documentation of the different unit prefixes please refer to: // https://en.wikipedia.org/wiki/Template:Quantities_of_bytes - const units = ["MB", "GB", "TiB", "PiB", "EiB", "ZiB", "YiB"]; - const factor = 1024; - const megabytes = this.props.megabyt...
f1c484c9bf378abd1f5e67132f566300807caafc
public/components/QueryArea.jsx
public/components/QueryArea.jsx
import React from 'react'; class QueryArea extends React.Component { constructor(props){ super(props); this.handleBeerClick = this.handleBeerClick.bind(this); } handleBeerClick(e) { e.preventDefault(); const targetBeer = this.props.beerList[e.target.key]; this.props.handleIndividalBeerSearch(targetBe...
import React from 'react'; class QueryArea extends React.Component { constructor(props){ super(props); this.handleBeerClick = this.handleBeerClick.bind(this); } handleBeerClick(e) { e.preventDefault(); const targetBeer = this.props.beerList[e.target.value]; this.props.handleIndividalBeerSearch(target...
Fix issue with array mapping
Fix issue with array mapping
JSX
mit
joeylaguna/tankard.io,joeylaguna/tankard.io
--- +++ @@ -8,7 +8,7 @@ handleBeerClick(e) { e.preventDefault(); - const targetBeer = this.props.beerList[e.target.key]; + const targetBeer = this.props.beerList[e.target.value]; this.props.handleIndividalBeerSearch(targetBeer); } @@ -21,7 +21,7 @@ <h4>Did you mean...</h4> <ul> {...
fcafd00ceb0c81dba3732e421538e74be3c4def8
src/components/Icons.jsx
src/components/Icons.jsx
import React from 'react'; export default function Icon({ icon }) { return ( <svg viewBox="0 0 1024 1024"> <path d={icon}></path> </svg> ); };
import React from 'react'; export default function Icon({ icon }) { return ( <svg className="icon" viewBox="0 0 1024 1024"> <path d={icon}></path> </svg> ); };
Add class names to svg icon components
Add class names to svg icon components
JSX
mit
emyarod/afw,emyarod/afw
--- +++ @@ -2,7 +2,7 @@ export default function Icon({ icon }) { return ( - <svg viewBox="0 0 1024 1024"> + <svg className="icon" viewBox="0 0 1024 1024"> <path d={icon}></path> </svg> );
41e75858c0ef7285393d5cae26ae1cf1d6480b33
components/Error.jsx
components/Error.jsx
import React, { Component } from 'react'; const Error = () => ( <div className="error"> <div className="error-message"> Does not exist </div> </div> ); export default Error;
import React, { Component } from 'react'; //Stateless component as it does not need to manage any state const Error = () => ( <div className="error"> <div className="error-message"> Does not exist </div> </div> ); export default Error;
Add comments to error component
Add comments to error component
JSX
mit
PMiraLopes/GithubSearcher,PMiraLopes/GithubSearcher
--- +++ @@ -1,5 +1,6 @@ import React, { Component } from 'react'; +//Stateless component as it does not need to manage any state const Error = () => ( <div className="error"> <div className="error-message">
ee17257f79ad8af4ee88697b1218bb8f1c4a811c
src/query_set.jsx
src/query_set.jsx
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. import React from 'react'; import { connect } from 'react-redux'; import { RangeQuerySet } from './range_query.jsx'; class _QuerySet extends React.Component { componentDidMount() { ...
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. import React from 'react'; import { connect } from 'react-redux'; import { RangeQuerySet } from './range_query.jsx'; class _QuerySet extends React.Component { componentDidMount() { ...
Fix queries not updating on some filter changes.
Fix queries not updating on some filter changes.
JSX
apache-2.0
devnev/boardwalk,devnev/boardwalk
--- +++ @@ -8,21 +8,21 @@ class _QuerySet extends React.Component { componentDidMount() { this._setupQueries(this.props.queries); - this._updateData(); + this._updateData(this.props); } componentWillReceiveProps(nextProps) { if (this.props.queries !== nextProps.queries) { this._setupQ...
5ff9792bead63f6552d2004a23026ae321397f04
src/components/elements/search-form.jsx
src/components/elements/search-form.jsx
import React from 'react'; import { browserHistory } from 'react-router'; import classnames from 'classnames'; import { preventDefault } from '../../utils'; export default class SearchForm extends React.Component { constructor(props) { super(props); this.state = { isFocused: false }; } refSe...
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import classnames from 'classnames'; import { preventDefault } from '../../utils'; class SearchForm extends React.Component { constructor(props) { super(props); this.state = { isFocused: f...
Make SearchForm aware of query changes
Make SearchForm aware of query changes This fixes bug with leftover text in mobile sidebar SearchForm.
JSX
mit
clbn/freefeed-gamma,clbn/freefeed-gamma,clbn/freefeed-gamma
--- +++ @@ -1,10 +1,11 @@ import React from 'react'; +import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import classnames from 'classnames'; import { preventDefault } from '../../utils'; -export default class SearchForm extends React.Component { +class SearchForm extends Re...
157969aa5ea168b25b5d969fa57fbb31d46a56c2
app/javascript/src/components/Navigation/components/AboutScinoteModal.jsx
app/javascript/src/components/Navigation/components/AboutScinoteModal.jsx
// @flow import React from "react"; import type { Node } from "react"; import { FormattedMessage } from "react-intl"; import { Modal } from "react-bootstrap"; type Props = { showModal: boolean, scinoteVersion: string, addons: Array<string>, onModalClose: Function }; export default (props: Props): Node => { ...
// @flow import React from "react"; import type { Node } from "react"; import { FormattedMessage } from "react-intl"; import { Modal } from "react-bootstrap"; type Props = { showModal: boolean, scinoteVersion: string, addons: Array<string>, onModalClose: Function }; export default (props: Props): Node => { ...
Comment out code which returns invalid data
HACK: Comment out code which returns invalid data It seems like the backend is returning a weird response when queried for addons. Once the backend issue is identified and fixed this should be uncommented. Signed-off-by: Adrian Oprea <a1b909ec1cc11cce40c28d3640eab600e582f833@oprea.rocks>
JSX
mpl-2.0
Ducz0r/scinote-web,mlorb/scinote-web,Ducz0r/scinote-web,mlorb/scinote-web,mlorb/scinote-web,Ducz0r/scinote-web
--- +++ @@ -28,7 +28,7 @@ <strong> <FormattedMessage id="general.addon_versions" /> </strong> - {addons.map((addon: string): Node => <p>{addon}</p>)} + {/* {addons.map((addon: string): Node => <p>{addon}</p>)} */} </Modal.Body> </Modal> );
207b4f0a56c3a8c43f9ecb171fa34dea39e03028
plugins/resources/app/javascript/app/components/availability_zones/overview.jsx
plugins/resources/app/javascript/app/components/availability_zones/overview.jsx
import AvailabilityZoneCategory from '../../containers/availability_zones/category'; import { byUIString, byNameIn } from '../../utils'; const AvailabilityZoneOverview = ({ isFetching, overview, flavorData }) => { if (isFetching) { return <p><span className='spinner'/> Loading capacity data...</p>; } const...
import AvailabilityZoneCategory from '../../containers/availability_zones/category'; import { byUIString, byNameIn } from '../../utils'; const AvailabilityZoneOverview = ({ isFetching, overview, flavorData }) => { if (isFetching) { return <p><span className='spinner'/> Loading capacity data...</p>; } const...
Clarify that this is resource, not quota usage
Clarify that this is resource, not quota usage
JSX
apache-2.0
sapcc/elektra,sapcc/elektra,sapcc/elektra,sapcc/elektra
--- +++ @@ -13,6 +13,7 @@ <div className='bs-callout bs-callout-info bs-callout-emphasize'> This screen shows the available capacity (gray bar) and actual current resource usage (blue part) in each availability zone. Use this data to choose which availability zone to deploy your application t...
d3b65176d36ebed71794c716ca5d1ab28c6e51d4
src/field/email/ask_email.jsx
src/field/email/ask_email.jsx
import React from 'react'; import Screen from '../../core/screen'; import EmailPane from './email_pane'; const Component = ({model, t}) => ( <EmailPane lock={model} placeholder={t("emailInputPlaceholder", {__textOnly: true})} /> ); export default class AskEmail extends Screen { constructor() { supe...
import React from 'react'; import Screen from '../../core/screen'; import EmailPane from './email_pane'; const Component = ({i18n, model}) => ( <EmailPane lock={model} placeholder={i18n.str("emailInputPlaceholder")} /> ); export default class AskEmail extends Screen { constructor() { super("email")...
Use i18n prop instead of t in AskEmail screen
Use i18n prop instead of t in AskEmail screen
JSX
mit
mike-casas/lock,mike-casas/lock,mike-casas/lock
--- +++ @@ -2,10 +2,10 @@ import Screen from '../../core/screen'; import EmailPane from './email_pane'; -const Component = ({model, t}) => ( +const Component = ({i18n, model}) => ( <EmailPane lock={model} - placeholder={t("emailInputPlaceholder", {__textOnly: true})} + placeholder={i18n.str("emailIn...
d9761d0466b7a5a93401f662df758b66448039eb
src/client/components/Header.jsx
src/client/components/Header.jsx
import React, { Component } from 'react' import { Link } from 'react-router' import { Navbar } from 'react-bootstrap' import { has } from 'lodash' import JWTPayload from '../react-prop-types/JWTPayload.js' import GitHubButton from './GitHubButton.jsx' import LazyImage from './LazyImage.jsx' export default class Header...
import React, { Component } from 'react' import { Link } from 'react-router' import { Navbar } from 'react-bootstrap' import { has } from 'lodash' import JWTPayload from '../react-prop-types/JWTPayload.js' import GitHubButton from './GitHubButton.jsx' import LazyImage from './LazyImage.jsx' export default class Header...
Use a more meaningful avatar placeholder
Use a more meaningful avatar placeholder
JSX
isc
brooksn/iocupid,brooksn/iocupid
--- +++ @@ -15,10 +15,11 @@ var avatar = ( // eslint-disable-line no-extra-parens <LazyImage url={`https://api.github.com/users/${ghUsername}`} jsonReducer={jsonReducer} + placeholder="public/anonymous.png" /> ) } else { - avatar = <img src="public/bird.png" />...
fb590c6a9c3feb912690aab2853478636c4581a1
packages/mwp-app-render/src/components/uxcapture/UXCaptureFont.jsx
packages/mwp-app-render/src/components/uxcapture/UXCaptureFont.jsx
// @flow import React from 'react'; type Props = { fontFamily: string, mark: string, }; export const fontLoaderSrc = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.10/webfont.js'; const generateUXCaptureFontJS = (fontFamily: string, mark: string) => ` WebFont.load({ custom: { families:...
// @flow import React from 'react'; type Props = { fontFamily: string, mark: string, }; export const fontLoaderSrc = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.10/webfont.js'; const generateUXCaptureFontJS = (fontFamily: string, mark: string) => ` WebFont.load({ custom: { families:...
Use UX Capture's mark() rather than native UserTiming's mark().
Use UX Capture's mark() rather than native UserTiming's mark().
JSX
mit
meetup/meetup-web-platform
--- +++ @@ -15,7 +15,9 @@ families: ['${fontFamily}'] }, active: function() { - window.performance.mark('${mark}'); + if (window.UX) { + window.UX.mark('${mark}'); + } } }); `;
c9e1cadabfc48a3564be7787c3ac2a5121981771
src/FadeThroughContainer.jsx
src/FadeThroughContainer.jsx
import React from 'react' import FadeThroughComponent from './FadeThroughComponent.jsx' export default class FadeThroughContainer extends React.Component { static propTypes = { width: React.PropTypes.number.isRequired, height: React.PropTypes.number.isRequired, delay: React.PropTypes.number.isRequired ...
import React from 'react' import FadeThroughComponent from './FadeThroughComponent.jsx' export default class FadeThroughContainer extends React.Component { static propTypes = { width: React.PropTypes.string.isRequired, height: React.PropTypes.string.isRequired, delay: React.PropTypes.number.isRequired ...
Fix Proptype requirement for height and width. Change to string.
Fix Proptype requirement for height and width. Change to string.
JSX
mit
sunyang713/react-fadethrough
--- +++ @@ -4,8 +4,8 @@ export default class FadeThroughContainer extends React.Component { static propTypes = { - width: React.PropTypes.number.isRequired, - height: React.PropTypes.number.isRequired, + width: React.PropTypes.string.isRequired, + height: React.PropTypes.string.isRequired, dela...
a465f12f54e65277d268b14e7d97d2df286b4d64
src/components/pages/NotFoundPage/index.jsx
src/components/pages/NotFoundPage/index.jsx
/* Copyright (C) 2017 Cloudbase Solutions SRL This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribute...
/* Copyright (C) 2017 Cloudbase Solutions SRL This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribute...
Add basic style to `NotFoundPage`
Add basic style to `NotFoundPage` Use any invalid path to view it. Ex.: 'http://localhost:3000/blabla'.
JSX
agpl-3.0
aznashwan/coriolis-web,aznashwan/coriolis-web
--- +++ @@ -17,15 +17,35 @@ import React from 'react' import styled from 'styled-components' +import Palette from '../../styleUtils/Palette' import EmptyTemplate from '../../templates/EmptyTemplate' -const Wrapper = styled.div`` +const Wrapper = styled.div` + position: absolute; + top: 0; + bottom: 0; + ri...
3ffad7530ea4af1fa8fe30b9a7d1731873d87b69
app/assets/javascripts/scorebook/progress_reports/sortable_th.jsx
app/assets/javascripts/scorebook/progress_reports/sortable_th.jsx
// Ported from EC.ActivitySearchSort EC.SortableTh = React.createClass({ propTypes: { displayName: React.PropTypes.string.isRequired, sortHandler: React.PropTypes.func.isRequired // Handle sorting of columns }, getInitialState: function() { return { sortDirection: 'asc' }; }, arrowClas...
// Ported from EC.ActivitySearchSort EC.SortableTh = React.createClass({ propTypes: { displayName: React.PropTypes.string.isRequired, sortHandler: React.PropTypes.func.isRequired // Handle sorting of columns }, getInitialState: function() { return { sortDirection: 'asc' }; }, arrowClas...
Remove unnecessary bind() in SortableTh
Remove unnecessary bind() in SortableTh
JSX
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
--- +++ @@ -18,9 +18,9 @@ clickSort: function() { // Toggle the sort direction. var newDirection = (this.state.sortDirection === 'asc') ? 'desc' : 'asc'; - this.setState({sortDirection: newDirection}, _.bind(function() { - this.props.sortHandler(newDirection); - }, this)); + this.setState...
3204a90970c70ea01c66186ee0e9a02cbc74470a
src/common/Track.jsx
src/common/Track.jsx
/* eslint-disable react/prop-types */ import React from 'react'; const Track = (props) => { const { className, included, vertical, offset, length, style } = props; const positonStyle = vertical ? { bottom: `${offset}%`, height: `${length}%`, } : { left: `${offset}%`, width: `${length}%`, }; ...
/* eslint-disable react/prop-types */ import React from 'react'; const Track = (props) => { const { className, included, vertical, offset, length, style } = props; const positonStyle = vertical ? { bottom: `${offset}%`, height: `${length}%`, } : { left: `${offset}%`, width: `${length}%`, }; ...
Remove visibility property from rc-slider-track
Remove visibility property from rc-slider-track
JSX
mit
react-component/slider,react-component/slider
--- +++ @@ -13,11 +13,10 @@ }; const elStyle = { - visibility: included ? 'visible' : 'hidden', ...style, ...positonStyle, }; - return <div className={className} style={elStyle} />; + return included ? <div className={className} style={elStyle} /> : null; }; export default Track;
8ce8da0713055fc6265388b4af8c9fd776502761
app/app/components/navbar/Nav.jsx
app/app/components/navbar/Nav.jsx
import React from 'react'; import {Link, hashHistory} from 'react-router' import NavLinks from './NavLinks.jsx' export default class Nav extends React.Component { render(){ return ( <nav className="navbar navbar-inverse"> <div className="container"> <div className="navbar-header"> <button type="...
import React from 'react'; import {Link, hashHistory} from 'react-router' import NavLinks from './NavLinks.jsx' export default class Nav extends React.Component { render(){ return ( <nav className="navbar navbar-inverse"> <div className="container"> <div className="navbar-header"> <button type="...
Update navbar to include it's links factored out
Update navbar to include it's links factored out
JSX
mit
taodav/MicroSerfs,taodav/MicroSerfs
--- +++ @@ -18,9 +18,7 @@ <Link to="/" className="navbar-brand">MicroSerfs</Link> </div> <div id="navbar" className="collapse navbar-collapse"> - <ul className="nav navbar-nav"> - <NavLinks /> - </ul> + <NavLinks /> </div> </div> </nav>
0ea5420bdf744fc4180948877ef41fb6b41cbe73
system-addon/content-src/asrouter/templates/OnboardingMessage/OnboardingMessage.jsx
system-addon/content-src/asrouter/templates/OnboardingMessage/OnboardingMessage.jsx
import {ModalOverlay} from "../../components/ModalOverlay/ModalOverlay"; import React from "react"; class OnboardingCard extends React.PureComponent { constructor(props) { super(props); this.onClick = this.onClick.bind(this); } onClick() { const {props} = this; props.sendUserActionTelemetry({eve...
import {ModalOverlay} from "../../components/ModalOverlay/ModalOverlay"; import React from "react"; class OnboardingCard extends React.PureComponent { constructor(props) { super(props); this.onClick = this.onClick.bind(this); } onClick() { const {props} = this; props.sendUserActionTelemetry({eve...
Change telemetry for onboarding from 'TRY_NOW' to regular button click
chore(telemetry): Change telemetry for onboarding from 'TRY_NOW' to regular button click
JSX
mpl-2.0
mozilla/activity-stream,mozilla/activity-stream,rlr/activity-streams,Mardak/activity-stream,rlr/activity-streams,mozilla/activity-streams,AdamHillier/activity-stream,rlr/activity-streams,sarracini/activity-stream,Mardak/activity-stream,AdamHillier/activity-stream,sarracini/activity-stream,AdamHillier/activity-stream,Ma...
--- +++ @@ -9,7 +9,7 @@ onClick() { const {props} = this; - props.sendUserActionTelemetry({event: "TRY_NOW", message_id: props.id}); + props.sendUserActionTelemetry({event: "CLICK_BUTTON", message_id: props.id}); props.onAction(props.content); }
1f18cf97b5b2a8b1c5293e792a98b1cc486ed456
app/assets/javascripts/components/components/media_gallery.jsx
app/assets/javascripts/components/components/media_gallery.jsx
import ImmutablePropTypes from 'react-immutable-proptypes'; import PureRenderMixin from 'react-addons-pure-render-mixin'; const MediaGallery = React.createClass({ propTypes: { media: ImmutablePropTypes.list.isRequired }, mixins: [PureRenderMixin], render () { var children = this.props.media.take(...
import ImmutablePropTypes from 'react-immutable-proptypes'; import PureRenderMixin from 'react-addons-pure-render-mixin'; const MediaGallery = React.createClass({ propTypes: { media: ImmutablePropTypes.list.isRequired }, mixins: [PureRenderMixin], render () { var children = this.props.media.take(...
Fix styling of media attachments in statuses
Fix styling of media attachments in statuses
JSX
agpl-3.0
bureaucracy/mastodon,pso2club/mastodon,pinfort/mastodon,verniy6462/mastodon,lindwurm/mastodon,maa123/mastodon,unarist/mastodon,foozmeat/mastodon,sylph-sin-tyaku/mastodon,bureaucracy/mastodon,kibousoft/mastodon,kagucho/mastodon,thor-the-norseman/mastodon,summoners-riftodon/mastodon,anon5r/mastonon,rutan/mastodon,Monappy...
--- +++ @@ -14,23 +14,18 @@ var size = children.size; children = children.map((attachment, i) => { - let width = 142; - let height = 110; - let marginRight = 0; + let width = 50; + let height = 100; if (size == 4 || (size === 3 && i > 0)) { - height...
23bdbfcf3155427f1c2458e6e1608fece8d3a1fd
packages/lesswrong/components/recommendations/RecommendationsPage.jsx
packages/lesswrong/components/recommendations/RecommendationsPage.jsx
import { Components, registerComponent } from 'meteor/vulcan:core'; import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import { getFragment } from 'meteor/vulcan:core'; import gql from 'graphql-tag'; import { graphql } from 'react-apollo'; import withUser from '../common/wi...
import { Components, registerComponent } from 'meteor/vulcan:core'; import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import { getFragment } from 'meteor/vulcan:core'; import gql from 'graphql-tag'; import { graphql } from 'react-apollo'; import withUser from '../common/withUser'; const...
Fix DeepScan warning (unused import)
Fix DeepScan warning (unused import)
JSX
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope
--- +++ @@ -1,5 +1,5 @@ import { Components, registerComponent } from 'meteor/vulcan:core'; -import React, { Component } from 'react'; +import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import { getFragment } from 'meteor/vulcan:core'; import gql from 'graphql-tag';
962facee89c2a1f43ef70f39b5dc83c97f4e6050
app/assets/javascripts/components/IssueShowComponents/FixList.js.jsx
app/assets/javascripts/components/IssueShowComponents/FixList.js.jsx
var FixList = React.createClass({ render: function(){ var issueID = this.props.issue_id var Fixes = this.props.fixes.map(function(fix) { return < FixItem title={fix.title} issue_id={issueID} id={fix.id} key={fix.id} image_url={fix.image_url}/> }); return ( <div className="fix_list"> ...
var FixList = React.createClass({ render: function(){ var issueID = this.props.issue_id var Fixes = this.props.fixes.map(function(fix) { return < FixItem title={fix.title} issue_id={issueID} id={fix.id} key={fix.id} image_url={fix.image_url}/> }); return ( <div className="fix_list"> ...
Fix React complaints about needing React.addons.createFragment(object) on IssueShow page
Fix React complaints about needing React.addons.createFragment(object) on IssueShow page
JSX
mit
ShadyLogic/fixstarter,ShadyLogic/fixstarter,TimCannady/fixstarter,TimCannady/fixstarter,TimCannady/fixstarter,ShadyLogic/fixstarter
--- +++ @@ -15,7 +15,7 @@ { this.props.fixes.length == 0 ? <p> No fixes posted. Submit a fix! </p> : - {Fixes} + React.addons.createFragment({Fixes}) } </div>
2b9cc97601faacb3b499c612775c875d0aadc133
app/components/Contact.jsx
app/components/Contact.jsx
'use strict'; import React from 'react'; import GMap from './partials/GMap'; import ContactInfo from '../constants/json/ContactInfoData.json'; import LocationInfo from '../constants/json/LocationInfoData.json'; import VCard from '../../public/resources/Ralph Isenrich, CFA.vcf'; import { INFO_MAP, renderContactInfo } f...
'use strict'; import React from 'react'; import GMap from './partials/GMap'; import ContactInfo from '../constants/json/ContactInfoData.json'; import LocationInfo from '../constants/json/LocationInfoData.json'; import VCard from '../../public/resources/Ralph Isenrich CFA.vcf'; import { INFO_MAP, renderContactInfo } fr...
Correct import to reflect new vCard file name
chore: Correct import to reflect new vCard file name
JSX
mit
IsenrichO/DaviePoplarCapital,IsenrichO/DaviePoplarCapital
--- +++ @@ -4,7 +4,7 @@ import GMap from './partials/GMap'; import ContactInfo from '../constants/json/ContactInfoData.json'; import LocationInfo from '../constants/json/LocationInfoData.json'; -import VCard from '../../public/resources/Ralph Isenrich, CFA.vcf'; +import VCard from '../../public/resources/Ralph Ise...
ffb7041f236b2f8f671c2cfd96962f3886d3af45
client/components/UVicHybridTelemetry.jsx
client/components/UVicHybridTelemetry.jsx
import React, {Component} from 'react' import Panel from './Panel' import io from 'socket.io-client' const socket = io() export default class UVicHybridTelemetry extends Component { constructor (props) { super(props) socket.on('data', (msg) => { console.log(msg) }) } render () { return ( <div class...
import React, {Component} from 'react' import Panel from './Panel' import io from 'socket.io-client' const socket = io() export default class UVicHybridTelemetry extends Component { constructor (props) { super(props) socket.on('data', (msg) => { console.log(msg) }) } render () { return ( <div class...
Fix frame to panel type
Fix frame to panel type
JSX
mit
UVicFH/Telemetry-v2,UVicFH/Telemetry-v2
--- +++ @@ -18,10 +18,10 @@ <div className="container"> <div className="row"> <div className="col-md-4"> - <Frame header="Dash"/> + <Panel header="Dash"/> </div> <div className="col-md-8"> - <Frame header="Graphs"/> + <Panel header="Graphs"/> </div> </div> ...
16b92d055f83508f575071b30843cc590f76e13d
app/assets/javascripts/components/main-nav.jsx
app/assets/javascripts/components/main-nav.jsx
class MainNav extends React.Component { signInLink() { const { battletag, authPath } = this.props if (battletag.length > 0) { return ( <span className="nav-item">Signed in as <strong>{battletag}</strong></span> ) } return ( <a href={authPath} className="nav-i...
class MainNav extends React.Component { signInLink() { const { battletag, authPath } = this.props if (battletag.length > 0) { return ( <span className="nav-item">Signed in as <strong>{battletag}</strong></span> ) } return ( <a href={authPath} className="nav-i...
Make nav bar same width as content area
Make nav bar same width as content area
JSX
mit
cheshire137/overwatch-team-comps,cheshire137/overwatch-team-comps,cheshire137/overwatch-team-comps
--- +++ @@ -17,11 +17,13 @@ render() { return ( - <nav className="nav"> - <div className="nav-right"> - {this.signInLink()} - </div> - </nav> + <div className="container"> + <nav className="nav"> + <div className="nav-right"> + {this.signInLin...
4c6ae454c56ce6cdd71d32559fb8317675f5f82f
app/assets/javascripts/components/news_feed/news_feed_item_post.js.jsx
app/assets/javascripts/components/news_feed/news_feed_item_post.js.jsx
(function() { module.exports = React.createClass({ displayName: 'NewsFeedItemPost', propTypes: { post: React.PropTypes.object.isRequired, user: React.PropTypes.object.isRequired, product: React.PropTypes.object.isRequired }, render: function() { var post = this.props.post ...
(function() { module.exports = React.createClass({ displayName: 'NewsFeedItemPost', propTypes: { post: React.PropTypes.object.isRequired, user: React.PropTypes.object.isRequired, product: React.PropTypes.object.isRequired }, render: function() { var post = this.props.post ...
Read more for posts should link to the post
Read more for posts should link to the post
JSX
agpl-3.0
lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta
--- +++ @@ -33,7 +33,7 @@ <div className="gray-darker" dangerouslySetInnerHTML={{__html: post.markdown_body}} /> - <a className="btn btn-pill btn-sm" href={product.url}>Read more</a> + <a className="btn btn-pill btn-sm" href={post.url}>Read more</a> </div> ) }
34294090e9e21c2d50d6d666a099ca6ec5fe6f14
test/fixtures/unsafeComponent.jsx
test/fixtures/unsafeComponent.jsx
var React = require("react"); var UnsafeComponent = React.createClass({ render: function () { return <div ref="element" />; } }); module.exports = UnsafeComponent;
var React = require("react"); var UnsafeComponent = React.createClass({ render: function () { return <div ref="value" />; } }); module.exports = UnsafeComponent;
Adjust test case for protected properties
Adjust test case for protected properties
JSX
mit
besarthoxhaj/react-test-tree,QubitProducts/react-test-tree,besarthoxhaj/react-test-tree,QubitProducts/react-test-tree
--- +++ @@ -2,7 +2,7 @@ var UnsafeComponent = React.createClass({ render: function () { - return <div ref="element" />; + return <div ref="value" />; } });
23e70160311c2a5cd3386d95f81bab7ac988eb7c
src/js/components/validateData/validateValues/ValidateValuesTreemapHelp.jsx
src/js/components/validateData/validateValues/ValidateValuesTreemapHelp.jsx
/** * ValidateValuesTreemapHelp.jsx * Created by Kevin Li 6/20/16 **/ import React from 'react'; const defaultProps = { rule: 'Unspecified', description: '', detail: null, count: 0, type: 'error' }; export default class ValidateValuesTreemapHelp extends React.Component { render() { let detail = ' hide'...
/** * ValidateValuesTreemapHelp.jsx * Created by Kevin Li 6/20/16 **/ import React from 'react'; const defaultProps = { rule: 'Unspecified', description: '', detail: null, count: 0, type: 'error' }; export default class ValidateValuesTreemapHelp extends React.Component { render() { let detail = ' hide'...
Hide header instead of remove
Hide header instead of remove
JSX
cc0-1.0
fedspendingtransparency/data-act-broker-web-app,fedspendingtransparency/data-act-broker-web-app
--- +++ @@ -21,8 +21,8 @@ } return ( <div className="usa-da-treemap-help-wrap"> - <div className="treemap-help-title"> - + <div className="treemap-help-title hide"> + Rule {this.props.rule} </div> <div className="treemap-help-description"> <b>Field:</b> {this.props.field}<br /...
fd3357132e1216b610f8847a12be8fd349e07df5
src/day.jsx
src/day.jsx
/** @jsx React.DOM */ window.Day = React.createClass({ className: function() { classNames = ['day']; if(this.props.day.isSame(this.props.month, 'month')) { classNames.push('this-month'); } if(moment().isSame(this.props.day, 'day')) { classNames.push('today'); } return className...
/** @jsx React.DOM */ window.Day = React.createClass({ render: function() { classes = React.addons.classSet({ 'day': true, 'this-month': this.props.day.isSame(this.props.month, 'month'), 'today': moment().isSame(this.props.day, 'day') }); return ( <div className={classes}>{this.p...
Use React.addons.classSet for class construction
Use React.addons.classSet for class construction
JSX
mit
bceskavich/react-datepicker,dabapps/react-datepicker,jaceechan/react-datepicker,BrunoAlcides/react-datepicker,RickyDan/react-datepicker,croscon/react-datepicker,mkawalec/react-datepicker,tbo/react-datepicker,marketplacer/react-datepicker,toadums/react-datepicker,mitchrosu/react-datepicker,jwdotjs/react-datepicker,Innov...
--- +++ @@ -1,23 +1,15 @@ /** @jsx React.DOM */ window.Day = React.createClass({ - className: function() { - classNames = ['day']; + render: function() { + classes = React.addons.classSet({ + 'day': true, + 'this-month': this.props.day.isSame(this.props.month, 'month'), + 'today': moment()....
eeda0df46beca2949f1c1f427b702cf9e23b96d9
app/assets/javascripts/mixins/event.js.jsx
app/assets/javascripts/mixins/event.js.jsx
(function() { var EventMixin = { timestamp: function(story) { return moment(story || this.props.story.created).format("ddd, hA") }, subjectMap: { Discussion: function(discussion) { return 'a discussion'; }, Post: function(post) { return 'a new blog post' }, ...
(function() { var EventMixin = { timestamp: function(story) { return moment(story || this.props.story.created).format("ddd, hA") }, subjectMap: { Discussion: function(discussion) { return 'a discussion'; }, Post: function(post) { return 'a new blog post' }, ...
Fix missing space in "awarded"
Fix missing space in "awarded"
JSX
agpl-3.0
assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta,lachlanjc/meta
--- +++ @@ -26,7 +26,7 @@ }, verbMap: { - 'Award': 'awarded', + 'Award': 'awarded ', 'Close': 'closed ', 'Comment': 'commented on ', 'Post': 'published ',
2d411653da3183d967641866386e3d5fc21bb456
web/static/js/components/category_column.jsx
web/static/js/components/category_column.jsx
import React from "react" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/category_column.css" function CategoryColumn(props) { const categoryToEmoticonUnicodeMap = { happy: "😊", sad: "πŸ˜₯", confused: "πŸ˜•", "action-item": "πŸš€", } const emoticonUnicode = categoryTo...
import React from "react" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/category_column.css" function CategoryColumn(props) { const categoryToEmoticonUnicodeMap = { happy: "😊", sad: "πŸ˜₯", confused: "πŸ˜•", "action-item": "πŸš€", } const emoticonUnicode = categoryTo...
Remove unnecessary anchor tags in category column
Remove unnecessary anchor tags in category column
JSX
mit
tnewell5/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,samdec11/remote_retro
--- +++ @@ -20,7 +20,7 @@ <section className="column"> <div className="ui center aligned basic segment"> <i className={styles.icon}>{emoticonUnicode}</i> - <p><a>@{props.category}</a></p> + <p><strong>{props.category}</strong></p> </div> <div className="ui divider" /> ...