mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fixes
This commit is contained in:
parent
ba23a61013
commit
dbddfc85fa
3 changed files with 9 additions and 7 deletions
|
@ -1 +1 @@
|
|||
0.40.0-rc11
|
||||
0.40.1
|
|
@ -11,7 +11,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.isType, &.isRelation { align-items: center; }
|
||||
&.isRelation { align-items: center; }
|
||||
&.isType, &.isRelation {
|
||||
.side.left {
|
||||
.titleWrap { align-items: center; }
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
import * as React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { IconObject, Editable, Label } from 'Component';
|
||||
import { analytics, I, keyboard, translate } from 'Lib';
|
||||
import { J, analytics, I, keyboard, translate } from 'Lib';
|
||||
|
||||
const SidebarSectionTypeTitle = observer(class SidebarSectionTypeTitle extends React.Component<I.SidebarSectionComponent> {
|
||||
|
||||
refName = null;
|
||||
timeout = 0;
|
||||
|
||||
constructor (props: I.SidebarSectionComponent) {
|
||||
super(props);
|
||||
|
@ -74,14 +75,15 @@ const SidebarSectionTypeTitle = observer(class SidebarSectionTypeTitle extends R
|
|||
this.setValue();
|
||||
};
|
||||
|
||||
getRelationKey (): string {
|
||||
const { id, object } = this.props;
|
||||
componentWillUnmount(): void {
|
||||
window.clearTimeout(this.timeout);
|
||||
};
|
||||
|
||||
switch (id) {
|
||||
getRelationKey (): string {
|
||||
switch (this.props.id) {
|
||||
case 'title': return 'name';
|
||||
case 'plural': return 'pluralName';
|
||||
};
|
||||
|
||||
return '';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue