mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
update the edit page to remove multiple links
This commit is contained in:
parent
b8338abba6
commit
4a29c74d59
1 changed files with 27 additions and 13 deletions
|
|
@ -201,7 +201,7 @@ const ProjectEditForm = ({ project }) => {
|
|||
/>
|
||||
</Flex>
|
||||
</Label>
|
||||
|
||||
{/*
|
||||
{screenshot.map((image, index) => (
|
||||
<div
|
||||
key={index}
|
||||
|
|
@ -230,17 +230,31 @@ const ProjectEditForm = ({ project }) => {
|
|||
}}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
|
||||
<Input
|
||||
{...useField('screenshot')}
|
||||
value={JSON.stringify(screenshot)}
|
||||
type="hidden"
|
||||
/>
|
||||
|
||||
))} */}
|
||||
<Label>
|
||||
<Text>Add screenshots</Text>
|
||||
<Text variant="caption">
|
||||
Demo your work! No hosted link? Try{' '}
|
||||
<a href="https://hackclub.slack.com/archives/C016DEDUL87">#cdn</a>{' '}
|
||||
or <a href="https://tmpfiles.org/?upload">tmpfiles</a>
|
||||
</Text>
|
||||
<Input
|
||||
{...useField('screenshot')}
|
||||
sx={{ border: '1px dashed', borderColor: '#09AFB4', mb: 2 }}
|
||||
/>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>Add videos</Text>
|
||||
<Flex sx={{ alignItems: 'center', mb: 2 }}>
|
||||
<Text variant="caption">
|
||||
Add a link to your demo video! Need a host? Try{' '}
|
||||
<a href="https://hackclub.slack.com/archives/C016DEDUL87">#cdn</a>{' '}
|
||||
or <a href="https://tmpfiles.org/?upload">tmpfiles</a>
|
||||
</Text>
|
||||
<Input
|
||||
{...useField('video')}
|
||||
sx={{ border: '1px dashed', borderColor: '#09AFB4', mb: 2 }}
|
||||
/>
|
||||
{/* <Flex sx={{ alignItems: 'center', mb: 2 }}>
|
||||
<Input
|
||||
type="url"
|
||||
value={newVideo}
|
||||
|
|
@ -262,9 +276,9 @@ const ProjectEditForm = ({ project }) => {
|
|||
}
|
||||
}}
|
||||
/>
|
||||
</Flex>
|
||||
</Flex> */}
|
||||
</Label>
|
||||
|
||||
{/*
|
||||
{video.map((image, index) => (
|
||||
<div
|
||||
key={index}
|
||||
|
|
@ -294,7 +308,7 @@ const ProjectEditForm = ({ project }) => {
|
|||
}}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
))} */}
|
||||
|
||||
<Input
|
||||
{...useField('video')}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue