Skip to content

Commit

Permalink
Merge pull request #10 from ryxxn/feature/export
Browse files Browse the repository at this point in the history
Feature/export
  • Loading branch information
ryxxn authored Jun 19, 2024
2 parents 43b33ed + 5b7ca2b commit 5f5f229
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-handle-alert",
"version": "0.3.5",
"version": "0.4.0",
"description": "A React library to handle alert and confirm without components",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -23,7 +23,7 @@
"typescript": "^4.0.0"
},
"scripts": {
"build": "tsc && cp src/**/*.css dist/components/"
"build": "tsc && cp src/*.css dist"
},
"homepage": "https://react-handle-alert.vercel.app",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Alert.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import "./style.css";
import "../react-handle-alert.css";
import { AlertModalProps } from "../types";

export function AlertModal({
Expand Down Expand Up @@ -30,7 +30,7 @@ export function AlertModal({
<div className="rha-modal-box" style={style}>
{text}
<div className="rha-button-group" style={buttonGroupStyle}>
<button onClick={onClose} style={button.style || {}}>
<button type="button" onClick={onClose} style={button.style || {}}>
{button.text || "Ok"}
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Confirm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import "./style.css";
import "../react-handle-alert.css";
import { ConfirmModalProps } from "../types";

export function ConfirmModal({
Expand Down
File renamed without changes.

0 comments on commit 5f5f229

Please sign in to comment.