Skip to content

Commit 8a3eef1

Browse files
authored
feat(app): add question editor (#425)
* feat(app): add question editor * refactor(app): remove paragraph id * feat(app): add mutation error handler * fix(app): fix elements position * fix(app): fix modal position * fix(app): fix modal center position * feat(app): add webpackChunkName
1 parent ffb480c commit 8a3eef1

16 files changed

+608
-325
lines changed

apps/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@tanstack/react-query": "4.20.4",
1919
"@tanstack/react-query-devtools": "4.20.4",
2020
"client-only": "0.0.1",
21+
"easymde": "2.18.0",
2122
"next": "13.0.8-canary.0",
2223
"next-mdx-remote": "4.2.0",
2324
"openapi-typescript-fetch": "1.1.3",

apps/app/public/typeofweb-logo.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"use client";
2+
3+
import { ComponentProps } from "react";
4+
import Logo from "../../public/typeofweb-logo.svg";
5+
import { useUIContext } from "../providers/UIProvider";
6+
import { BaseModal } from "./BaseModal";
7+
import { Button } from "./Button/Button";
8+
9+
export const AddQuestionConfirmationModal = (props: ComponentProps<typeof BaseModal>) => {
10+
const { closeModal } = useUIContext();
11+
12+
return (
13+
<BaseModal {...props}>
14+
<div className="flex flex-col items-center text-center text-primary">
15+
<p>
16+
Jeszcze momencik… a Twoje pytanie pojawi się na liście dostępnych pytań. Najpierw musimy
17+
rzucić na nie okiem i zatwierdzić.
18+
<br /> W międzyczasie zajrzyj na bloga ❤️
19+
</p>
20+
21+
<a href="https://typeofweb.com/" target="_blank" rel="noreferrer">
22+
<div className="mt-7 h-32 w-32 rounded-md bg-white p-2 shadow-[0_0_10px] shadow-neutral-700/20 transition-colors hover:bg-neutral-50">
23+
<Logo className="h-full w-full" viewBox="0 0 400 400" />
24+
</div>
25+
</a>
26+
27+
<Button type="button" variant="alternative" className="mt-8" onClick={closeModal}>
28+
OK!
29+
</Button>
30+
</div>
31+
</BaseModal>
32+
);
33+
};

apps/app/src/components/AddQuestionModal.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)