Skip to content

Instantly share code, notes, and snippets.

View Rieranthony's full-sized avatar
💯

Anthony Riera Rieranthony

💯
View GitHub Profile
@Rieranthony
Rieranthony / orchestra-webhook-events.ts
Last active September 25, 2024 22:13
orchestra-webhook-events.ts
export enum WebhookEventType {
// Task-related events
TASK_CREATED = "task.created",
TASK_UPDATED = "task.updated",
TASK_DELETED = "task.deleted",
TASK_ARCHIVED = "task.archived",
TASK_UNARCHIVED = "task.unarchived",
TASK_STATUS_CHANGED = "task.status_changed",
TASK_ASSIGNED = "task.assigned",
@Rieranthony
Rieranthony / scrollable.tsx
Created August 2, 2024 11:51
Scrollable component with UI clue (React + TailwindCss)
import React, { useRef, useEffect, useState, ReactNode } from "react";
import { cn } from "@/libs/utils";
interface ScrollableWithGradientProps {
children: ReactNode;
className?: string;
containerClassName?: string;
gradientClassName?: string;
maxHeight?: string;
}
"use client";
import { cn } from "@/libs/utils";
import { ReactNode, useState } from "react";
type Feature = {
video: string;
title: string;
description: string;
};
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export function withAppContext<
P extends { appContext?: AppContextInterface },
R = Omit<P, 'appContext'>
>(
Component: React.ComponentClass<P> | React.StatelessComponent<P>
): React.SFC<R> {
return function BoundComponent(props: R) {
return (