Skip to content

Commit 57afa63

Browse files
authored
Merge pull request #191 from dvishal485/github-action
2 parents ef3bf8b + 660c9e7 commit 57afa63

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
run: npm run build
4646

4747
- name: Deploy to web
48-
run: rsync -avz --delete dist/ ~/nix_frontend_dev
48+
run: rsync -avz --delete dist/ /var/www/nix-frontend/team-dev.dtutimes.com

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
run: npm run build
4646

4747
- name: Deploy to web
48-
run: rsync -avz --delete dist/ ~/nix_frontend/dist
48+
run: rsync -avz --delete dist/ /var/www/nix-frontend/team.dtutimes.com

src/pages/Story/YourStories/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import BlogTable from "@/components/Table/BlogTable";
66
import { YOUR_BLOGS_PER_PAGE as perPage } from "@/config";
77
import { ErrorContext } from "@/contexts/error";
88
import API from "@/services/API";
9-
import { Blog } from "@/types/blog";
9+
import { IBlog } from "@/types/blog";
1010
import BlogPageType from "@/types/blogPages";
1111
import BlogStatus from "@/types/blogStatus";
1212
import { useContext, useEffect, useReducer } from "react";
1313
import { useNavigate } from "react-router-dom";
1414
import { toast } from "react-toastify";
1515

1616
interface YourStoriesState {
17-
blogs: Blog[];
17+
blogs: IBlog[];
1818
searchTerm: string;
1919
statusFilters: BlogStatus[];
2020
loading: boolean;
@@ -78,7 +78,7 @@ const reducer = (
7878
};
7979

8080
const getFilteredBlogs = (
81-
blogs: Blog[],
81+
blogs: IBlog[],
8282
statusFilters: BlogStatus[],
8383
searchTerm: string,
8484
) => {
@@ -111,7 +111,7 @@ export default function AllStory() {
111111
});
112112
};
113113

114-
const more_menu_options = (blog: Blog) =>
114+
const more_menu_options = (blog: IBlog) =>
115115
moreMenuOptionsGenerator({ blog, navigate, fetchBlogs, setError, toast });
116116

117117
useEffect(() => {

0 commit comments

Comments
 (0)