Skip to content

Commit

Permalink
solucione erros
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferson-lopez committed Apr 20, 2024
1 parent 244d270 commit 5f82007
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 28 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@
name: BUILD AND PUBLISH

on:
push:
branches: ["master"]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "build"
with:
package-manager: npm
command: ts:build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mart-next",
"version": "0.1.17",
"version": "0.2.19",
"description": "Components and hooks prepared and ready for user in react or next. It is not a ui component library",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions src/components/counter/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { Counter } from './counter';
export { default as meta, CounterDefault, CounterDowm, CounterUp } from './stories/counter.stories';
export { Counter } from "./counter";
3 changes: 1 addition & 2 deletions src/components/heading-wrapper/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { HeadingWrapper } from './heading-wrapper';
export { default as meta, example, header } from './stories/heading-wrapper.stories';
export { HeadingWrapper } from "./heading-wrapper";
4 changes: 0 additions & 4 deletions src/components/index.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions src/hooks/use-client-rect.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { useState, useEffect, RefObject } from "react";

export function useClientRect(ref: RefObject<HTMLElement | null>) {
Expand Down
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ export * from "./components";
export * from "./hooks";
export * from "./models";
export * from "./utilities";
export {
getCookies,
deleteCookie,
getCookie,
setCookie,
} from "./utilities/cookies";
8 changes: 4 additions & 4 deletions src/utilities/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

import { cookies } from "next/headers";

export function getCookie(name: string) {
export async function getCookie(name: string) {
return cookies().get(name)?.value;
}

export function setCookie(key: string, name: string) {
export async function setCookie(key: string, name: string) {
return cookies().set(key, name);
}

export function deleteCookie(key: string) {
export async function deleteCookie(key: string) {
return cookies().delete(key);
}

export function getCookies() {
export async function getCookies() {
return cookies().getAll();
}

0 comments on commit 5f82007

Please sign in to comment.