Moved ContainerModel to Interfaces + replace all components to purecomponent (#12)
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/12
This commit is contained in:
parent
b5aa002877
commit
e3228ccffa
13 changed files with 27 additions and 30 deletions
|
@ -9,7 +9,7 @@ interface IHistoryProps {
|
|||
jumpTo: (move: number) => void
|
||||
}
|
||||
|
||||
export class History extends React.Component<IHistoryProps> {
|
||||
export class History extends React.PureComponent<IHistoryProps> {
|
||||
public render() {
|
||||
const isOpenClasses = this.props.isOpen ? 'right-0' : '-right-64';
|
||||
|
||||
|
@ -33,7 +33,7 @@ export class History extends React.Component<IHistoryProps> {
|
|||
key={move}
|
||||
onClick={() => this.props.jumpTo(move)}
|
||||
className={
|
||||
`w-full elements-sidebar-row whitespace-pre
|
||||
`w-full elements-sidebar-row whitespace-pre
|
||||
text-left text-sm font-medium transition-all ${selectedClass}`
|
||||
}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue