How to use the found.withRouter function in found

To help you get started, we’ve selected a few found examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coralproject / talk / src / core / client / admin / routes / Configure / NavigationWarningContainer.tsx View on Github external
this.removeTransitionHook = props.router.addTransitionHook(() =>
      this.props.active ? warningMessage : true
    );
  }

  public componentWillUnmount() {
    this.removeTransitionHook();
  }

  public render() {
    return null;
  }
}

const enhanced = withContext(({ localeBundles }) => ({ localeBundles }))(
  withRouter(NavigationWarningContainer)
);
export default enhanced;
github coralproject / talk / src / core / client / admin / routes / moderate / containers / ModerateContainer.tsx View on Github external
...ModerateNavigationContainer_story
        ...ModerateSearchBarContainer_story
      }
      moderationQueues(storyID: $storyID) {
        ...ModerateNavigationContainer_moderationQueues
      }
    }
  `,
  cacheConfig: { force: true },
  prepareVariables: (params, match) => {
    return {
      storyID: match.params.storyID,
      includeStory: Boolean(match.params.storyID),
    };
  },
})(withRouter(ModerateContainer));

export default enhanced;
github artsy / reaction / src / Artsy / Router / Components / PreloadLink.tsx View on Github external
return (
                
              )
            }}
          
        )
      }}
    
  )
}

export const PreloadLink = withRouter(withContext(_PreloadLink))
github coralproject / talk / src / core / client / admin / routes / Moderate / ModerateContainer.tsx View on Github external
...ModerateNavigationContainer_story
        ...ModerateSearchBarContainer_story
      }
      moderationQueues(storyID: $storyID) {
        ...ModerateNavigationContainer_moderationQueues
      }
    }
  `,
  cacheConfig: { force: true },
  prepareVariables: (params, match) => {
    return {
      storyID: match.params.storyID,
      includeStory: Boolean(match.params.storyID),
    };
  },
})(withRouter(ModerateContainer));

export default enhanced;
github coralproject / talk / src / core / client / admin / containers / RedirectLoginContainer.tsx View on Github external
settings {
        auth {
          integrations {
            local {
              enabled
              targetFilter {
                admin
                stream
              }
            }
          }
        }
      }
    }
  `,
})(withRouter(withSetRedirectPathMutation(RedirectLoginContainer)));

export default enhanced;