mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
refactored rerendering speed
This commit is contained in:
parent
b6bf317649
commit
69d1d749cf
32 changed files with 144 additions and 2045 deletions
|
@ -1,10 +1,10 @@
|
|||
import React from 'react';
|
||||
import React, { memo } from 'react';
|
||||
import { UserLocation } from '~/components/UserLocation';
|
||||
import { DistanceBar } from '~/components/panels/DistanceBar';
|
||||
|
||||
export const TopLeftPanel = () => (
|
||||
export const TopLeftPanel = memo(() => (
|
||||
<div className="status-panel top left">
|
||||
<UserLocation />
|
||||
<DistanceBar />
|
||||
</div>
|
||||
);
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue