From 79b4fd782982f8e2ee6a957900b77fc768c637df Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 10 May 2024 13:36:30 -0700 Subject: [PATCH] Add curl banner to import dialog --- src-web/components/ImportDataDialog.tsx | 12 ++++++++---- src-web/hooks/useImportData.tsx | 14 ++++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src-web/components/ImportDataDialog.tsx b/src-web/components/ImportDataDialog.tsx index 1a941df9..90e47607 100644 --- a/src-web/components/ImportDataDialog.tsx +++ b/src-web/components/ImportDataDialog.tsx @@ -1,6 +1,8 @@ import { VStack } from './core/Stacks'; import { Button } from './core/Button'; -import { useState } from 'react'; +import React, { useState } from 'react'; +import { Banner } from './core/Banner'; +import { Icon } from './core/Icon'; interface Props { importData: () => Promise; @@ -11,15 +13,17 @@ export function ImportDataDialog({ importData }: Props) { return ( -

Supported Formats:

  • Postman Collection v2+
  • Insomnia v4+
  • -
  • Curl command(s)
  • +
  • Curl commands
+ + + Paste any Curl command into URL bar +