-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
126 additions
and
90 deletions.
There are no files selected for viewing
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
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
33 changes: 0 additions & 33 deletions
33
catalog/app/containers/Bucket/PackageDialog/FormSkeleton.js
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import * as React from 'react' | ||
import * as M from '@material-ui/core' | ||
|
||
import Skeleton from 'components/Skeleton' | ||
|
||
export function TextFieldSkeleton({ animate }) { | ||
return <Skeleton {...{ height: 48, mt: 2, mb: 1, animate }} /> | ||
} | ||
|
||
export function FilesInputSkeleton({ animate, className }) { | ||
return ( | ||
<div className={className}> | ||
<Skeleton {...{ height: 24, width: 64, animate }} /> | ||
<Skeleton {...{ height: 140, mt: 2, animate }} /> | ||
</div> | ||
) | ||
} | ||
|
||
export function MetaInputSkeleton({ animate, className }) { | ||
return ( | ||
<div className={className}> | ||
<M.Box display="flex" mb={2}> | ||
<Skeleton {...{ height: 24, width: 64, animate }} /> | ||
<M.Box flexGrow={1} /> | ||
<Skeleton {...{ height: 24, width: 64, animate }} /> | ||
</M.Box> | ||
<M.Box display="flex"> | ||
<Skeleton {...{ height: 32, width: 200, animate }} /> | ||
<Skeleton {...{ height: 32, ml: 0.5, flexGrow: 1, animate }} /> | ||
</M.Box> | ||
<M.Box display="flex" mt={0.5}> | ||
<Skeleton {...{ height: 32, width: 200, animate }} /> | ||
<Skeleton {...{ height: 32, ml: 0.5, flexGrow: 1, animate }} /> | ||
</M.Box> | ||
</div> | ||
) | ||
} | ||
|
||
export function WorkflowsInputSkeleton({ animate }) { | ||
return <Skeleton {...{ height: 80, mt: 3, mb: 3, animate }} /> | ||
} | ||
|
||
const useFormSkeletonStyles = M.makeStyles((t) => ({ | ||
files: { | ||
marginTop: t.spacing(2), | ||
}, | ||
meta: { | ||
marginTop: t.spacing(3), | ||
}, | ||
})) | ||
|
||
export function FormSkeleton({ animate }) { | ||
const classes = useFormSkeletonStyles() | ||
|
||
return ( | ||
<> | ||
<TextFieldSkeleton animate={animate} /> | ||
<TextFieldSkeleton animate={animate} /> | ||
|
||
<FilesInputSkeleton className={classes.files} animate={animate} /> | ||
|
||
<MetaInputSkeleton className={classes.meta} animate={animate} /> | ||
|
||
<WorkflowsInputSkeleton animate={animate} /> | ||
</> | ||
) | ||
} |
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
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