Skip to content

Commit 76e2639

Browse files
committed
rename to outlinebadge and solidbadge
1 parent eed09d1 commit 76e2639

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

source/components/badge-detail.js renamed to source/components/outline-badge.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/**
2-
* @flow
3-
*
4-
* <Badge/> renders the [Open] / [Closed] / [IDK] badge on the detai view
5-
*/
1+
// @flow
62

73
import * as React from 'react'
84
import {View, Text, StyleSheet, Platform} from 'react-native'
@@ -15,7 +11,7 @@ const BGCOLORS = {
1511

1612
type Props = {status: string}
1713

18-
export class BadgeDetail extends React.PureComponent<Props> {
14+
export class OutlineBadge extends React.PureComponent<Props> {
1915
render() {
2016
const {status} = this.props
2117
const bgColor = BGCOLORS[status] || c.goldenrod

source/components/badge.js renamed to source/components/solid-badge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let styles = StyleSheet.create({
2424
},
2525
})
2626

27-
export function Badge({
27+
export function SolidBadge({
2828
text,
2929
style,
3030
textStyle,

source/views/building-hours/detail/building.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import moment from 'moment-timezone'
88
import * as c from '@frogpond/colors'
99
import {getShortBuildingStatus} from '../lib'
1010

11-
import {BadgeDetail} from '../../../components/badge-detail'
11+
import {OutlineBadge} from '../../../components/outline-badge'
1212
import {Header} from './header'
1313
import {ScheduleTable} from './schedule-table'
1414
import {ListFooter} from '@frogpond/lists'
@@ -63,7 +63,7 @@ export class BuildingDetail extends React.Component<Props> {
6363
) : null}
6464

6565
<Header building={info} />
66-
<BadgeDetail status={openStatus} />
66+
<OutlineBadge status={openStatus} />
6767
<ScheduleTable
6868
now={now}
6969
onProblemReport={onProblemReport}

source/views/building-hours/row.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as React from 'react'
44
import {View, Text, StyleSheet} from 'react-native'
5-
import {Badge} from '../../components/badge'
5+
import {SolidBadge} from '../../components/solid-badge'
66
import isEqual from 'lodash/isEqual'
77
import type momentT from 'moment'
88
import type {BuildingType} from './types'
@@ -122,7 +122,7 @@ export class BuildingRow extends React.Component<Props, State> {
122122
</Title>
123123

124124
{!info.isNotice ? (
125-
<Badge
125+
<SolidBadge
126126
accentColor={accentBg}
127127
style={styles.accessoryBadge}
128128
text={openStatus}

source/views/sis/course-search/detail/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from 'react'
44
import {StyleSheet, Text, Platform} from 'react-native'
55
import type {CourseType} from '../../../../lib/course-search'
66
import glamorous from 'glamorous-native'
7-
import {BadgeDetail} from '../../../../components/badge-detail'
7+
import {OutlineBadge} from '../../../../components/outline-badge'
88
import moment from 'moment-timezone'
99
import {formatDay} from '../lib/format-day'
1010
import {
@@ -204,7 +204,7 @@ export class CourseDetailView extends React.PureComponent<Props> {
204204
<Container>
205205
<Header>{course.title || course.name}</Header>
206206
<SubHeader>{deptNum(course)}</SubHeader>
207-
<BadgeDetail status={status} />
207+
<OutlineBadge status={status} />
208208
<TableView>
209209
<Information course={course} />
210210
<Schedule course={course} />

0 commit comments

Comments
 (0)