How to use the react-redux-firebase/lib/helpers.isEmpty function in react-redux-firebase

To help you get started, we’ve selected a few react-redux-firebase 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 prescottprue / fireadmin / src / containers / Navbar / Navbar.js View on Github external
function Navbar({ history, firebase, auth, profile }) {
  const classes = useStyles()
  const authExists = isLoaded(auth) && !isEmpty(auth)

  return (
    
      
        
          Fireadmin
github prescottprue / generator-react-firebase / examples / redux-firestore / src / utils / components.js View on Github external
propNames.some(propNames, name => {
        const propValue = get(props, name)
        return (
          isLoaded(propValue) &&
          (isEmpty(propValue) ||
            (Array.isArray(propValue) && !Object.keys(propValue).length))
        )
      }),
    component
github prescottprue / fireadmin / src / utils / components.js View on Github external
some(propsNames, name => {
        const propValue = get(props, name)
        return (
          isLoaded(propValue) &&
          (isEmpty(propValue) || (isArray(propValue) && !size(propValue)))
        )
      }),
    component
github prescottprue / react-redux-firebase / examples / complete / material / src / routes / Projects / components / ProjectsPage / ProjectsPage.js View on Github external
render={() => (
          <div>
            
            <div>
              
              {!isEmpty(projects) &amp;&amp;
                projects.map((project, ind) =&gt; (
                   goToProject(project.key)}
                    onDelete={() =&gt; deleteProject(project.key)}
                  /&gt;
                ))}
            </div>
          </div>
        )}
      /&gt;
github prescottprue / generator-react-firebase / generators / app / templates / src / utils / components.js View on Github external
some(propsNames, name => {
        const propValue = get(props, name)
        return (
          isLoaded(propValue) &&
          (isEmpty(propValue) || (isArray(propValue) && !size(propValue)))
        )
      }),
    component
github prescottprue / fireadmin / src / routes / Projects / components / ProjectsPage / ProjectsPage.js View on Github external
onSubmit={addProject}
        onRequestClose={toggleDialog}
      /&gt;
      <div>
        
        {!isEmpty(projects) &amp;&amp;
          projects.map((project, ind) =&gt; (
             goToProject(project.id)}
              onDelete={() =&gt; deleteProject(project.id)}
            /&gt;
          ))}
        {!isEmpty(collabProjects) &amp;&amp;
          collabProjects.map((project, ind) =&gt; (
             goToProject(project.id)}
              onDelete={() =&gt; deleteProject(project.id)}
            /&gt;
          ))}
      </div>
    
  )
github prescottprue / fireadmin / src / routes / Projects / components / ProjectsPage / ProjectsPage.js View on Github external
addProject,
  goToProject,
  goToCollaborator
}) =&gt;
  children ? (
    cloneElement(children, { auth })
  ) : (
    <div>
      
      <div>
        
        {!isEmpty(projects) &amp;&amp;
          projects.map((project, ind) =&gt; (
             goToProject(project.id)}
              onDelete={() =&gt; deleteProject(project.id)}
            /&gt;
          ))}
        {!isEmpty(collabProjects) &amp;&amp;
          collabProjects.map((project, ind) =&gt; (
             goToProject(project.id)}</div></div>