Added recent projects list to logged-in nav

This commit is contained in:
Frank Johnson
2021-10-13 17:03:44 -04:00
parent 3df903ffc6
commit 77014f0d36
5 changed files with 78 additions and 21 deletions

View File

@@ -27,26 +27,30 @@ export const QUERY = gql`
export const Loading = () => <div>Loading...</div>
export const Empty = () => {
return (
export const Empty = ({ isMinimal = false }) => {
return !isMinimal ? (
<div className="rw-text-center">
{'No projects yet. '}
<Link to={routes.draftProject()} className="rw-link">
{'Create one?'}
</Link>
</div>
) : (
<p className="text-ch-gray-400">None yet!</p>
)
}
export const Success = ({
projects,
variables: { shouldFilterProjectsWithoutImage, projectLimit },
isMinimal = false,
}) => {
return (
<Projects
projects={projects}
shouldFilterProjectsWithoutImage={shouldFilterProjectsWithoutImage}
projectLimit={projectLimit}
isMinimal={isMinimal}
/>
)
}