Skip to content

Commit ce76d18

Browse files
authored
✨feat: 텍스트 에디터 구현
✨feat: 텍스트 에디터 구현
2 parents 853eb1e + d0991bb commit ce76d18

16 files changed

+400
-31
lines changed

package-lock.json

Lines changed: 144 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"axios": "^1.5.0",
1616
"react": "^18.2.0",
1717
"react-dom": "^18.2.0",
18+
"react-quill": "^2.0.0",
1819
"react-router-dom": "^6.16.0",
1920
"sass": "^1.67.0"
2021
},

src/api/api.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios';
22

3-
const api = axios.create({
3+
export const api = axios.create({
44
baseURL: import.meta.env.VITE_API_BASE_URL,
55
headers: { 'Content-Type': 'application/json' },
66
timeout: 5000,
@@ -20,5 +20,3 @@ api.interceptors.response.use(
2020
return Promise.reject(error);
2121
},
2222
);
23-
24-
export default api;

src/api/fetchProfileImages.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { api } from './api';
2+
3+
export default async function fetchProfileImages() {
4+
try {
5+
const res = await api.get('/profile-images/');
6+
return res.data.imageUrls;
7+
} catch {
8+
return [];
9+
}
10+
}

src/api/fetchProfileImages.js.js

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

src/api/getBackgroundImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import api from './api';
1+
import { api } from './api';
22

33
export default async function getBackgroundImage() {
44
const res = await api.get('/background-images/');

src/api/getRecipients.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import api from './api';
1+
import { api } from './api';
22

33
export default async function getRecipients() {
44
const res = await api.get('/13-5/recipients/');

src/api/postRecipient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import api from './api';
1+
import { api } from './api';
22

33
export default async function createPost({
44
team,

src/assets/images/arrow.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)