Skip to content

Commit c6a9895

Browse files
committed
remove the pointless wrapper class from student orgs
1 parent 32fe10a commit c6a9895

File tree

4 files changed

+7
-20
lines changed

4 files changed

+7
-20
lines changed

source/views/student-orgs/detail-wrapper.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

source/views/student-orgs/detail.android.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Cell} from 'react-native-tableview-simple'
77
import {Card} from '../components/card'
88
import * as c from '../components/colors'
99
import type {StudentOrgType} from './types'
10+
import type {TopLevelViewPropsType} from '../types'
1011
import Communications from 'react-native-communications'
1112
import openUrl from '../components/open-url'
1213

@@ -52,8 +53,8 @@ const styles = StyleSheet.create({
5253
},
5354
})
5455

55-
export class StudentOrgsDetailRenderView extends React.Component {
56-
props: {
56+
export class StudentOrgsDetailView extends React.Component {
57+
props: TopLevelViewPropsType & {
5758
org: StudentOrgType,
5859
}
5960

source/views/student-orgs/detail.ios.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {HtmlView} from '../components/html-view'
66
import {Cell, Section, TableView} from 'react-native-tableview-simple'
77
import * as c from '../components/colors'
88
import type {StudentOrgType} from './types'
9+
import type {TopLevelViewPropsType} from '../types'
910
import openUrl from '../components/open-url'
1011

1112
const styles = StyleSheet.create({
@@ -44,8 +45,8 @@ const styles = StyleSheet.create({
4445
},
4546
})
4647

47-
export class StudentOrgsDetailRenderView extends React.Component {
48-
props: {
48+
export class StudentOrgsDetailView extends React.Component {
49+
props: TopLevelViewPropsType & {
4950
org: StudentOrgType,
5051
}
5152

source/views/student-orgs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// @flow
22
export {StudentOrgsView} from './list'
3-
export {StudentOrgsDetailView} from './detail-wrapper'
3+
export {StudentOrgsDetailView} from './detail'

0 commit comments

Comments
 (0)