-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
2b8a3e5
commit b3a1d1f
Showing
2 changed files
with
36 additions
and
1 deletion.
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,34 @@ | ||
import { Text } from '@mantine/core'; | ||
import { IconLetterT } from '@tabler/icons-react'; | ||
import { ApplicationQuestion } from '../../../utils/application/ApplicationQuestions'; | ||
|
||
export interface TextDisplayProps extends ApplicationQuestion { | ||
additionalData: {}; | ||
} | ||
|
||
function validation(props: TextDisplayProps): (value: string) => void { | ||
return (value: string) => { | ||
return false; | ||
}; | ||
} | ||
|
||
const TextDisplay = (props: TextDisplayProps) => { | ||
return ( | ||
<> | ||
<Text style={props.style}>{props.title}</Text> | ||
{props.subtitle && ( | ||
<Text c="dimmed" size="sm"> | ||
{props.subtitle} | ||
</Text> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
const EditQuestion: any = undefined; | ||
|
||
TextDisplay.edit = EditQuestion; | ||
TextDisplay.mockdata = {}; | ||
TextDisplay.validation = validation; | ||
TextDisplay.icon = IconLetterT; | ||
export default TextDisplay; |
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