Refactor recent projects into it's own cell (#558)
This commit was merged in pull request #558.
This commit is contained in:
@@ -27,30 +27,19 @@ export const QUERY = gql`
|
||||
|
||||
export const Loading = () => <div>Loading...</div>
|
||||
|
||||
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 Empty = () => {
|
||||
return <div className="rw-text-center">{'No projects yet.'}</div>
|
||||
}
|
||||
|
||||
export const Success = ({
|
||||
projects,
|
||||
variables: { shouldFilterProjectsWithoutImage, projectLimit },
|
||||
isMinimal = false,
|
||||
}) => {
|
||||
return (
|
||||
<Projects
|
||||
projects={projects}
|
||||
shouldFilterProjectsWithoutImage={shouldFilterProjectsWithoutImage}
|
||||
projectLimit={projectLimit}
|
||||
isMinimal={isMinimal}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user