mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 05:33:02 -05:00
Fix interface when exporting (#127)
This commit is contained in:
parent
88b3e5f69c
commit
79f6ce80d2
1 changed files with 11 additions and 15 deletions
|
@ -70,9 +70,9 @@ export const PenpotExporter = () => {
|
|||
};
|
||||
}, []);
|
||||
|
||||
if (loading) {
|
||||
return <LoadingIndicator />;
|
||||
}
|
||||
if (loading) return <LoadingIndicator />;
|
||||
|
||||
if (exporting) return <ExporterProgress />;
|
||||
|
||||
if (needsReload) {
|
||||
return (
|
||||
|
@ -98,18 +98,14 @@ export const PenpotExporter = () => {
|
|||
<form onSubmit={methods.handleSubmit(exportPenpot)}>
|
||||
<Stack>
|
||||
<MissingFontsSection fonts={missingFonts} />
|
||||
{exporting ? (
|
||||
<ExporterProgress />
|
||||
) : (
|
||||
<Stack space="xsmall" direction="row">
|
||||
<Button type="submit" fullWidth>
|
||||
Export to Penpot
|
||||
</Button>
|
||||
<Button secondary onClick={cancel} fullWidth>
|
||||
Cancel
|
||||
</Button>
|
||||
</Stack>
|
||||
)}
|
||||
<Stack space="xsmall" direction="row">
|
||||
<Button type="submit" fullWidth>
|
||||
Export to Penpot
|
||||
</Button>
|
||||
<Button secondary onClick={cancel} fullWidth>
|
||||
Cancel
|
||||
</Button>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</form>
|
||||
</FormProvider>
|
||||
|
|
Loading…
Reference in a new issue