mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-24 08:23:46 +00:00
Updated to airbnb coding styles
This commit is contained in:
@@ -6,8 +6,9 @@ interface WithoutSelectedServerProps {
|
||||
|
||||
export function withoutSelectedServer<T = {}>(WrappedComponent: FC<WithoutSelectedServerProps & T>) {
|
||||
return (props: WithoutSelectedServerProps & T) => {
|
||||
const { resetSelectedServer } = props;
|
||||
useEffect(() => {
|
||||
props.resetSelectedServer();
|
||||
resetSelectedServer();
|
||||
}, []);
|
||||
|
||||
return <WrappedComponent {...props} />;
|
||||
|
||||
Reference in New Issue
Block a user