mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
chore: text result extensions
This commit is contained in:
@@ -150,7 +150,9 @@ export default function CsvToJson({ title }: ToolComponentProps) {
|
||||
inputComponent={
|
||||
<ToolTextInput title="Input CSV" value={input} onChange={setInput} />
|
||||
}
|
||||
resultComponent={<ToolTextResult title="Output JSON" value={result} />}
|
||||
resultComponent={
|
||||
<ToolTextResult title="Output JSON" value={result} extension={'json'} />
|
||||
}
|
||||
getGroups={({ values, updateField }) => [
|
||||
{
|
||||
title: 'Input CSV Format',
|
||||
|
||||
@@ -79,7 +79,9 @@ export default function CsvToXml({ title }: ToolComponentProps) {
|
||||
inputComponent={
|
||||
<ToolTextInput title="Input CSV" value={input} onChange={setInput} />
|
||||
}
|
||||
resultComponent={<ToolTextResult title="Output XML" value={result} />}
|
||||
resultComponent={
|
||||
<ToolTextResult title="Output XML" value={result} extension={'xml'} />
|
||||
}
|
||||
getGroups={({ values, updateField }) => [
|
||||
{
|
||||
title: 'Input CSV Format',
|
||||
|
||||
Reference in New Issue
Block a user