Skip to content

Commit

Permalink
fix : unused exports
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-into committed Mar 20, 2024
1 parent ed91af6 commit 502189a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 114 deletions.
104 changes: 0 additions & 104 deletions packages/screens/Mini/Notifications/notificationData.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { NotificationType } from "./NotificationList";
import { GradientDirectionEnum } from "../components/GradientBox";

import {
Expand All @@ -9,109 +8,6 @@ import {
purpleDefault,
} from "@/utils/style/colors";

export const notifications: NotificationType[] = [
{
notificationId: "1",
img: {
url: "https://images.unsplash.com/photo-1591102972305-213abaa76d6f?q=80&w=2836&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
},
type: "purchase",
message: "Beyond",
user: { id: "23", username: "Norman", avatarUrl: "" },
price: 15000,
postedAt: "10 min ago",
},
{
notificationId: "2",
img: {
url: "https://images.unsplash.com/photo-1601887389937-0b02c26b602c?q=80&w=2523&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
},
type: "comment",
message: '"Happy to announce my new..."',
user: { id: "23", username: "Utopia96", avatarUrl: "" },
postedAt: "70 min ago",
},
{
notificationId: "3",
img: {
url: "https://images.unsplash.com/photo-1630313107085-987b5eb46062?q=80&w=3087&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
},
type: "collection",
message: "M E N T A L",
postedAt: "50 min ago",
},
{
notificationId: "4",
img: {
url: "https://images.unsplash.com/photo-1572379371012-9e11bfc61b35?q=80&w=3087&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
},
type: "tip",
price: 3000,
from: "Doubleface",
for: '"GM Teritori 🖐️"',
postedAt: "11 min ago",
},
{
notificationId: "5",
img: { url: "" },
type: "transfer",
price: 5000,
from: "Eagl3",
postedAt: "22 min ago",
},
{
notificationId: "6",
img: {
url: "https://www.haddonstone.com/en-us/wp-content/uploads/sites/14/2019/01/Winter_Statue-HE765-A_0.jpg",
},
type: "purchase",
message: "Beyond",
user: { id: "23", username: "Norman", avatarUrl: "" },
price: 15000,
postedAt: "30 min ago",
},
{
notificationId: "7",
img: { url: "" },
type: "comment",
message: '"Happy to announce my new..."',
user: { id: "23", username: "Utopia96", avatarUrl: "" },
postedAt: "10 min ago",
},
{
notificationId: "8",
img: { url: "" },
type: "collection",
message: "M E N T A L",
postedAt: "40 min ago",
},
{
notificationId: "9",
img: { url: "" },
type: "tip",
price: 3000,
from: "Doubleface",
for: '"GM Teritori 🖐️"',
postedAt: "80 min ago",
},
{
notificationId: "10",
img: { url: "" },
type: "transfer",
price: 5000,
from: "Eagl3",
postedAt: "20 min ago",
},
{
notificationId: "11",
img: { url: "" },
type: "transfer",
price: 5000,
from: "Eagl3",
postedAt: "4 min ago",
},
];

export const randomGradients = [
{
direction: GradientDirectionEnum.bottomTop,
Expand Down
12 changes: 2 additions & 10 deletions packages/store/slices/notification.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
EntityState,
PayloadAction,
createEntityAdapter,
createSlice,
Expand All @@ -14,7 +13,7 @@ const NotificationType = z.enum([
"group-join",
]);

export const Notification = z.object({
const Notification = z.object({
id: z.string(),
senderId: z.string().optional(),
groupId: z.string().optional(),
Expand All @@ -30,16 +29,9 @@ export type TypeNotification = z.infer<typeof Notification>;
const notificationEntityAdapter = createEntityAdapter<TypeNotification>();
const notificationSelectors = notificationEntityAdapter.getSelectors();

export interface NotificationState {
notifications: EntityState<TypeNotification>;
}

export const selectNotificationList = (state: RootState) =>
notificationSelectors.selectAll(state.notifications);

export const selectTotalNotification = (state: RootState) =>
notificationSelectors.selectTotal(state.notifications);

const notificationSlice = createSlice({
name: "notifications",
initialState: notificationEntityAdapter.getInitialState(),
Expand Down Expand Up @@ -85,7 +77,7 @@ const notificationSlice = createSlice({
},
});

export const { setNotificationList, setNotificationRequest, readNotification } =
export const { setNotificationRequest, readNotification } =
notificationSlice.actions;

export const notificationReducer = notificationSlice.reducer;

0 comments on commit 502189a

Please sign in to comment.