-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IIIF #30 - Adding unique identifier field to resources list and resou…
…rce edit pages
- Loading branch information
1 parent
154d7b0
commit 6b64e3c
Showing
5 changed files
with
44 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// @flow | ||
|
||
import React from 'react'; | ||
|
||
type Props = { | ||
label?: string, | ||
value: string | ||
}; | ||
|
||
const ReadOnlyField = (props: Props) => ( | ||
<div | ||
className='field' | ||
> | ||
{ props.label && ( | ||
<label | ||
htmlFor='read-only-element' | ||
> | ||
{ props.label } | ||
</label> | ||
)} | ||
<div | ||
id='read-only-element' | ||
className='ui input' | ||
role='textbox' | ||
> | ||
{ props.value } | ||
</div> | ||
</div> | ||
); | ||
|
||
export default ReadOnlyField; |
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
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