Skip to content

Commit

Permalink
feat(console): Application transfer from individual to group ownership (
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin-Parvulescu committed Sep 12, 2023
1 parent 6a850b5 commit c4f0c36
Show file tree
Hide file tree
Showing 5 changed files with 892 additions and 3 deletions.
19 changes: 17 additions & 2 deletions apps/console/app/routes/__layout/spuorg/$groupID/apps.new.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Form, Link, useOutletContext } from '@remix-run/react'
import { Form, Link, NavLink, useOutletContext } from '@remix-run/react'
import { GroupDetailsContextData } from '../$groupID'
import Breadcrumbs from '@proofzero/design-system/src/atoms/breadcrumbs/Breadcrumbs'
import { Text } from '@proofzero/design-system'
Expand Down Expand Up @@ -81,7 +81,7 @@ export const action: ActionFunction = getRollupReqFunctionErrorWrapper(
)

export default () => {
const { group, groupID } = useOutletContext<GroupDetailsContextData>()
const { group, groupID, apps } = useOutletContext<GroupDetailsContextData>()

return (
<>
Expand Down Expand Up @@ -129,6 +129,21 @@ export default () => {
</Button>
</Form>
</section>

{apps.filter((a) => !a.groupID) && (
<section className="flex flex-row justify-center mt-4">
<Text size="sm" className="text-gray-600 text-center">
Would you like to transfer an existing application <br />
into this group?{' '}
<Link
to={`/spuorg/${groupID}/apps/transfer`}
className="text-[#6366F1]"
>
Go to transfer
</Link>
</Text>
</section>
)}
</>
)
}
Loading

0 comments on commit c4f0c36

Please sign in to comment.