Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Make avg response times more visible in support form #24588

Merged
merged 8 commits into from
Aug 27, 2024
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,30 @@ const SupportFormBlock = ({ onCancel }: { onCancel: () => void }): JSX.Element =

return (
<Section title="Email an engineer">
<div className="grid grid-cols-2 border rounded [&_>*]:px-2 [&_>*]:py-0.5 mb-4 bg-bg-light">
<SupportForm />
<LemonButton
form="support-modal-form"
htmlType="submit"
type="primary"
data-attr="submit"
fullWidth
center
className="mt-4"
>
Submit
</LemonButton>
<LemonButton
form="support-modal-form"
type="secondary"
onClick={onCancel}
fullWidth
center
className="mt-2 mb-4"
>
Cancel
</LemonButton>
<br />
<div className="grid grid-cols-2 border rounded [&_>*]:px-2 [&_>*]:py-0.5 mb-4 bg-bg-light pt-4">
<div className="col-span-full flex justify-between border-b bg-bg-white py-1">
<div>
<strong>Avg support response times</strong>
Expand Down Expand Up @@ -131,28 +154,6 @@ const SupportFormBlock = ({ onCancel }: { onCancel: () => void }): JSX.Element =
)
})}
</div>
<SupportForm />
<LemonButton
form="support-modal-form"
htmlType="submit"
type="primary"
data-attr="submit"
fullWidth
center
className="mt-4"
>
Submit
</LemonButton>
<LemonButton
form="support-modal-form"
type="secondary"
onClick={onCancel}
fullWidth
center
className="mt-2"
>
Cancel
</LemonButton>
</Section>
)
}
Expand Down
Loading