-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
488 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React, { useState, Fragment } from 'react' | ||
import { Heading, Button, Paragraph. TextInput } from '@tensei/components' | ||
|
||
interface CreateResourceProps {} | ||
|
||
const CreateResource: React.FC<CreateResourceProps> = ({}) => { | ||
return ( | ||
<Fragment> | ||
<header className="flex flex-wrap items-center justify-between"> | ||
<Heading as="h1" className="text-tensei-darkest"> | ||
Update Tag | ||
</Heading> | ||
|
||
<div className="flex w-2/4 justify-end"> | ||
<Button | ||
clear | ||
className="bg-tensei-gray-300 border-tensei-gray-300" | ||
> | ||
Delete | ||
</Button> | ||
<Button primary className="ml-7"> | ||
Update | ||
</Button> | ||
</div> | ||
</header> | ||
<div className="grid grid-cols-3 gap-4"> | ||
<div className="col-span-2 flex flex-col flex-wrap mt-10 bg-white rounded-lg p-12"> | ||
<Paragraph className="tensei-gray-700"> | ||
Put in information about the new | ||
</Paragraph> | ||
|
||
<div className="w-full md:w-2/3 mt-10"> | ||
<TextInput label="Title" /> | ||
</div> | ||
</div> | ||
<div className="bg-white rounded-lg p-12 mt-10"> | ||
5 | ||
</div> | ||
</div> | ||
</Fragment> | ||
) | ||
} | ||
|
||
export default CreateResource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './CreateResource' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React, { useState } from 'react' | ||
import { ConfirmModal, Heading, StackedList, Button } from '@tensei/components' | ||
|
||
import Actions from '../../components/Actions' | ||
|
||
export interface ResourceDetailProps {} | ||
|
||
const ResourceDetail: React.FC<ResourceDetailProps> = ({}) => { | ||
const [deleting, setDeleting] = useState<any>(null) | ||
|
||
return ( | ||
<> | ||
<ConfirmModal | ||
open={!!deleting} | ||
setOpen={() => setDeleting(null)} | ||
title="Delete Account?" | ||
description="Are you sure you want to delete this account? This action cannot be reversed." | ||
/> | ||
<header className="flex justify-between items-center"> | ||
<Heading as="h1" className="text-tensei-darkest"> | ||
Tags details | ||
</Heading> | ||
|
||
<div className="flex w-2/4 justify-end"> | ||
<Button danger>Delete</Button> | ||
<Button primary className="ml-7"> | ||
Edit | ||
</Button> | ||
</div> | ||
</header> | ||
|
||
<div className="bg-white rounded-lg shadow-sm border-tensei-gray-100 border mt-9"> | ||
<StackedList | ||
fields={[ | ||
{ inputName: 'name' }, | ||
{ inputName: 'name' }, | ||
{ inputName: 'name' }, | ||
{ inputName: 'name' }, | ||
{ inputName: 'name' } | ||
]} | ||
/> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default ResourceDetail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ShowResource' |
Oops, something went wrong.