Skip to content

Commit

Permalink
Memoize file browser
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-leamon committed Jun 1, 2024
1 parent 79ed992 commit dc9d3e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"version": "1.0.135",
"version": "1.0.136",
"description": "Formation is a comprehensive component library powered by React, Styled Components, and CSS variables for creating apps and websites that demand responsive, unified cross-platform experiences.",
"resolutions": {
"string-width": "^4",
Expand Down
4 changes: 2 additions & 2 deletions src/components/FileBrowser/FileBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ interface FolderStructureProps {
* iconPrefix="fas"
* />
*/
export const FileBrowser = ({
export const FileBrowser = React.memo(({
sourceNames,
selectedSourceName,
setPendingSourceToApply,
Expand Down Expand Up @@ -424,7 +424,7 @@ export const FileBrowser = ({
}
</S.SourceTree>
)
}
})

const S = {
SourceTree: styled.div`
Expand Down

0 comments on commit dc9d3e4

Please sign in to comment.