Skip to content

Commit

Permalink
feat: Added explanatory docs to file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar committed Apr 6, 2024
1 parent 316fd65 commit 2f21a65
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Field, Fieldset, Label, Legend } from '@catalyst/fieldset'
import { Radio, RadioField, RadioGroup } from '@catalyst/radio'
import { useEffect, useRef, useState } from 'react'
import { useRef, useState } from 'react'
import { api } from "@/api"
import { Input } from '@catalyst/input'
import { Button } from '@catalyst/button'
Expand All @@ -10,7 +10,7 @@ import { useNavigate } from 'react-router-dom'
import { useConnectionList } from '@components/Providers/ConnectionListProvider'
import { isAxiosError } from 'axios'
import { CloudArrowUpIcon, DocumentCheckIcon } from '@heroicons/react/24/solid'
import { XCircleIcon, XMarkIcon } from '@heroicons/react/24/outline'
import { XMarkIcon } from '@heroicons/react/24/outline'


function classNames(...classes: string[]) {
Expand Down Expand Up @@ -201,7 +201,7 @@ const ConnectionCreator = ({ name = null }: { name: string | null }) => {
</div>
<div className={classNames(file ? "hidden" : "", "text-center")}>
<CloudArrowUpIcon onClick={handleFileClick} className="cursor-pointer mx-auto h-12 w-12 text-gray-300" aria-hidden="true" />
<div className="mt-4 flex text-sm leading-6 text-gray-400">
<div className="mt-4 flex text-sm leading-6 text-gray-400 justify-center">
<label
htmlFor="file-upload"
className="px-1 relative cursor-pointer rounded-md bg-gray-900 font-semibold text-white focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-600 focus-within:ring-offset-2 focus-within:ring-offset-gray-900 hover:text-indigo-500"
Expand All @@ -212,7 +212,10 @@ const ConnectionCreator = ({ name = null }: { name: string | null }) => {
</label>
<p>or drag and drop</p>
</div>
<p className="text-xs leading-5 text-gray-400">SQLite file</p>
<p className="text-xs leading-5 text-gray-400 px-12 mt-4">
Creates a copy of your SQLite file in DataLine.
Changes you make to the file will not be accessible
to DataLine as it will work on the copy you upload.</p>
</div>
</div>
</Field>
Expand Down

0 comments on commit 2f21a65

Please sign in to comment.