Update FormBoxEmpty types and move file

This commit is contained in:
Nick Rayburn committed 2022-05-14 15:00:21 -05:00
1 parent eeab4452fe
commit efb41cb29a
2 files changed
+19 -14

No files matched your search

@@ -19,7 +19,7 @@ import { useRouter } from 'next/router'
import SVG from 'react-inlinesvg'
import ChooseFunctionForm from './ChooseFunctionForm'
import FormEmptyBox from 'components/to-be-cleaned/FormBoxEmpty'
import FormEmptyBox from 'components/ui/FormBoxEmpty'
import NoTableState from 'components/ui/States/NoTableState'
import { useStore } from 'hooks'
@@ -695,17 +695,17 @@ const FunctionEmpty: FC = observer(({}) => {
<button
type="button"
onClick={() => _localState!.setChooseFunctionFormVisible(true)}
className="w-full relative
className="w-full relative
transition-all
shadow-sm
shadow-sm
border bg-scale-200 dark:bg-scale-400
border-scale-600
rounded
hover:border-scale-700
hover:bg-scale-300 dark:hover:bg-scale-500
px-5 py-1
px-5 py-1
"
>
<FormEmptyBox
@@ -723,17 +723,17 @@ const FunctionWithArguments: FC = observer(({}) => {
<>
<div
className="
w-full
relative
transition-shadow shadow-sm
relative
transition-shadow shadow-sm
border border-scale-200 dark:border-scale-500
rounded
px-5 py-4
px-5 py-4
flex space-x-3 items-center justify-between"
>
<div className="flex items-center gap-2">
@@ -1,7 +1,12 @@
import { FC } from 'react'
import { ReactText } from 'react'
import { Typography } from '@supabase/ui'
const EmptyPanel: FC<any> = ({ icon, text }) => {
interface Props {
icon: JSX.Element;
text: ReactText;
}
const FormBoxEmpty = ({ icon, text }: Props) => {
return (
<div className="flex items-center justify-center flex-row py-4 space-x-2">
<div className="relative bg-scale-300 text-scale-900 w-6 h-6 rounded-full flex items-center justify-center">
@@ -12,4 +17,4 @@ const EmptyPanel: FC<any> = ({ icon, text }) => {
)
}
export default EmptyPanel
export default FormBoxEmpty