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
import React from 'react'; | |
import { Modal } from '@faceless-ui/modal'; | |
import { Button } from 'payload/components'; | |
import { | |
Form, | |
FormSubmit, | |
RenderFields, | |
fieldTypes, | |
} from 'payload/components/forms'; |
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
import { Button } from 'payload/components/elements'; | |
import React, { useState } from 'react'; | |
const BulkUpload = () => { | |
const [uploadedFiles, setUploadedFiles] = useState([]); | |
const handleUploadFiles = (files) => { | |
const uploaded = [...uploadedFiles]; | |
files.some((file) => { |
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
import React from 'react'; | |
import { Props } from 'payload/components/views/Cell'; | |
import './styles.scss'; | |
const Cell: React.FC<Props> = (props) => { | |
const { cellData } = props; | |
if (!cellData) return null; | |
return ( |
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
import React, { useEffect, useState } from 'react' | |
import * as gcs from '@google-cloud/storage'; | |
const SpaceRemaining = () => { | |
const [totalBytes, setTotalBytes] = useState(null); | |
const [limitBytes, setLimitBytes] = useState(null); | |
const [error, setError] = useState(null); | |
useEffect(() => { | |
const fetchBucketInfo = async () => { |