1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00
This commit is contained in:
Andrew Simachev 2025-03-26 17:25:19 +01:00
parent ba23a61013
commit dbddfc85fa
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
3 changed files with 9 additions and 7 deletions

View file

@ -1 +1 @@
0.40.0-rc11
0.40.1

View file

@ -11,7 +11,7 @@
}
}
&.isType, &.isRelation { align-items: center; }
&.isRelation { align-items: center; }
&.isType, &.isRelation {
.side.left {
.titleWrap { align-items: center; }

View file

@ -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 '';
};