Skip to content

Commit

Permalink
Remove react.fc
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer committed Aug 13, 2020
1 parent f5b66fe commit 884e4a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/browser/modules/Editor/ActionButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ interface ActionButton {
iconColor?: string
}

const ActionButtons: React.FC<ActionButtonProps> = ({
buttons,
width = 24
}) => (
const ActionButtons = ({ buttons, width = 24 }: ActionButtonProps) => (
<ActionButtonSection>
{buttons.map((btn: ActionButton) => (
<EditorButton
Expand Down
2 changes: 1 addition & 1 deletion src/browser/modules/Sidebar/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface AboutProps {
serverEdition: string
}

const About: React.FC<AboutProps> = ({ serverVersion, serverEdition }) => (
const About = ({ serverVersion, serverEdition }: AboutProps) => (
<Drawer id="db-about">
<DrawerHeader>About Neo4j</DrawerHeader>
<DrawerBody>
Expand Down
4 changes: 2 additions & 2 deletions src/browser/modules/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ interface SidebarProps {
loadSync: boolean
}

const Sidebar: React.FC<SidebarProps> = ({
const Sidebar = ({
openDrawer,
onNavClick,
showStaticScripts,
neo4jConnectionState,
syncConnected,
loadSync
}) => {
}: SidebarProps) => {
const topNavItemsList = [
{
name: 'DBMS',
Expand Down

0 comments on commit 884e4a0

Please sign in to comment.