-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Plugin Information & InstallModal components
- Loading branch information
1 parent
0ed4f36
commit 6228597
Showing
3 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/components/organisms/PluginManagerPane/PluginInformation.tsx
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,13 @@ | ||
import React from 'react'; | ||
import {MonoklePlugin} from '@models/plugin'; | ||
|
||
function PluginInformation(props: {plugin: MonoklePlugin}) { | ||
const {plugin} = props; | ||
return ( | ||
<div> | ||
<p>{plugin.name}</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default PluginInformation; |
16 changes: 16 additions & 0 deletions
16
src/components/organisms/PluginManagerPane/PluginInstallModal.tsx
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,16 @@ | ||
import React, {useState} from 'react'; | ||
import {Input, Modal} from 'antd'; | ||
|
||
function PluginInstallModal(props: {isVisible: boolean; onClose: () => void}) { | ||
const {isVisible, onClose} = props; | ||
const [pluginUrl, setPluginUrl] = useState<string>(); | ||
|
||
return ( | ||
<Modal visible={isVisible} onCancel={onClose}> | ||
<p>Plugin URL:</p> | ||
<Input value={pluginUrl} onChange={e => setPluginUrl(e.target.value)} /> | ||
</Modal> | ||
); | ||
} | ||
|
||
export default PluginInstallModal; |
52 changes: 44 additions & 8 deletions
52
src/components/organisms/PluginManagerPane/PluginManagerPane.tsx
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