score:20

Accepted answer

You're not passing props from render

const Admin = ({ loggingIn, authenticatedAdmin, component: Component, ...rest }) => (
  <Route
    {...rest}
    render={(props) => {
      if (loggingIn) return <div />;
      return authenticatedAdmin ?
      (<Component 
        loggingIn={loggingIn} 
        authenticatedAdmin={authenticatedAdmin} 
        {...rest} 
        {...props} <--- match, location are here
      />) :
      (<Redirect to="/login" />);
    }}
  />
);

Related Query

More Query from same tag