✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
linting
AykutSarac1b25b2ecbf32
diff --git a/src/hocs/config.tsx b/src/hocs/config.tsxindex 47ef8316..99830e4c 100644--- a/src/hocs/config.tsx+++ b/src/hocs/config.tsx@@ -37,13 +37,14 @@ const WithConfig: ReactComponent = ({ children }) => {);};-const withConfig =- <P extends object>(Component: React.ComponentType<P>): React.FC =>- (props) =>- (- <WithConfig>- <Component {...(props as P)} />- </WithConfig>- );+const withConfig = <P extends object>(+ Component: React.ComponentType<P>+): React.FC => {+ return (props) => (+ <WithConfig>+ <Component {...(props as P)} />+ </WithConfig>+ );+};export { WithConfig, useConfig, ConfigContext, withConfig };