mirror of
https://github.com/System-End/site.git
synced 2026-04-19 23:22:49 +00:00
Merge pull request #1320 from hackclub/editable-description-field-for-arcade-showcase
Make description editable
This commit is contained in:
commit
aed5c3bc39
4 changed files with 16 additions and 4 deletions
|
|
@ -90,6 +90,17 @@ const ProjectEditForm = ({ project }) => {
|
|||
sx={{ border: '1px dashed', borderColor: '#09AFB4', mb: 2 }}
|
||||
/>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>Short description</Text>
|
||||
<Text variant="caption">
|
||||
This shows up on the showcase page. Keep it short and sweet!
|
||||
</Text>
|
||||
<Input
|
||||
{...useField('description')}
|
||||
placeholder="It's a party!"
|
||||
sx={{ border: '1px dashed', borderColor: '#09AFB4', mb: 2 }}
|
||||
/>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>ReadMe Link</Text>
|
||||
<Input
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ function invertColor(hex) {
|
|||
const ProjectView = ({
|
||||
id,
|
||||
title = 'Title Not Found',
|
||||
desc = 'Description Not Found',
|
||||
description = 'Description Not Found',
|
||||
slack = 'Slack Not Found',
|
||||
scrapbook = '',
|
||||
playLink,
|
||||
|
|
@ -112,6 +112,7 @@ const ProjectView = ({
|
|||
}}
|
||||
>
|
||||
<h1 className="slackey">{title}</h1>
|
||||
<h2>{description}</h2>
|
||||
<h3>By {user}</h3>
|
||||
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export default async function handler(req, res) {
|
|||
const updatedFields = {}
|
||||
updatedFields['Name'] = body.title
|
||||
updatedFields['Estimated Hours'] = body.hours
|
||||
updatedFields['Description'] = body.desc
|
||||
updatedFields['Description'] = body.description
|
||||
updatedFields['Slack Link'] = body.slackLink
|
||||
updatedFields['Code Link'] = body.codeLink
|
||||
updatedFields['Play Link'] = body.playLink
|
||||
|
|
@ -41,7 +41,7 @@ export default async function handler(req, res) {
|
|||
id: project.id,
|
||||
title: project.fields['Name'] || '',
|
||||
hours: project.fields['Estimated Hours'] || '',
|
||||
desc: project.fields['Description'] || '',
|
||||
description: project.fields['Description'] || '',
|
||||
slackLink: project.fields['Slack Link'] || '',
|
||||
codeLink: project.fields['Code Link'] || '',
|
||||
slackLink: project.fields['Slack Link'] || '',
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export default async function handler(req, res) {
|
|||
const results = {
|
||||
id: p.id,
|
||||
title: p.fields['Name'] || '',
|
||||
desc: p.fields['Description'] || '',
|
||||
description: p.fields['Description'] || '',
|
||||
hours: p.fields['Estimated Hours'],
|
||||
slackLink: p.fields['Slack Link'] || '',
|
||||
codeLink: p.fields['Code Link'] || '',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue