From: Dessalines Date: Tue, 8 Sep 2020 04:09:11 +0000 (-0500) Subject: Main page done. X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/%7BrepoUrl%7D?a=commitdiff_plain;h=8f44607956d9f5dd6583bed5d5e8263d1f02440c;p=lemmy-ui.git Main page done. --- diff --git a/package.json b/package.json index 137e4cc..4ddde80 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "eslint-plugin-jane": "^8.0.4", "husky": "^4.2.5", "jest": "^26.4.2", - "lemmy-js-client": "^1.0.8", + "lemmy-js-client": "^1.0.9", "lint-staged": "^10.1.3", "mini-css-extract-plugin": "^0.11.0", "node-sass": "^4.12.0", diff --git a/src/shared/components/data-type-select.tsx b/src/shared/components/data-type-select.tsx index 06285f7..c3e1fc6 100644 --- a/src/shared/components/data-type-select.tsx +++ b/src/shared/components/data-type-select.tsx @@ -23,7 +23,6 @@ export class DataTypeSelect extends Component< constructor(props: any, context: any) { super(props, context); this.state = this.emptyState; - console.log(this.state); } static getDerivedStateFromProps(props: any): DataTypeSelectProps { diff --git a/src/shared/components/listing-type-select.tsx b/src/shared/components/listing-type-select.tsx index 3d12d43..f7d8cc3 100644 --- a/src/shared/components/listing-type-select.tsx +++ b/src/shared/components/listing-type-select.tsx @@ -6,6 +6,7 @@ import { i18n } from '../i18next'; interface ListingTypeSelectProps { type_: ListingType; + showLocal?: boolean; onChange?(val: ListingType): any; } @@ -31,6 +32,7 @@ export class ListingTypeSelect extends Component< static getDerivedStateFromProps(props: any): ListingTypeSelectProps { return { type_: props.type_, + showLocal: props.showLocal, }; } @@ -53,6 +55,22 @@ export class ListingTypeSelect extends Component< /> {i18n.t('subscribed')} + {this.props.showLocal && ( + + )}