Skip to content

Commit

Permalink
chore: merge PR #12 from AmrAhmedA/dev
Browse files Browse the repository at this point in the history
fix: minor demo build fix
  • Loading branch information
AmrAhmedA authored Sep 2, 2023
2 parents 922d9f2 + 2d360dc commit c277259
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"typescript": "^5.0.4",
"vite": "^4.2.0"
"vite": "^4.2.3"
},
"dependencies": {
"@emotion/react": "^11.10.6",
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ReducerActions = {
| 'offlineStatusText'
| 'duration'
payload: {
position?: any
position?
darkMode?: boolean
statusText?: { online?: string; offline?: string }
duration?: number
Expand Down
7 changes: 3 additions & 4 deletions example/src/components/position.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Position } from '../../../src/OnlineStatusNotification'
import Button from '@mui/material/Button'
import Grid from '@mui/material/Grid'
import Tooltip from '@mui/material/Tooltip'
import Typography from '@mui/material/Typography'

const POSITIONS_ARR: { label: string; position: Position }[] = [
const POSITIONS_ARR: { label: string; position }[] = [
{
label: 'top-left',
position: 'topLeft'
Expand Down Expand Up @@ -33,7 +32,7 @@ const POSITIONS_ARR: { label: string; position: Position }[] = [
export function PositionContainer({ state, dispatch }) {
return (
<>
<Typography variant="h6" gutterBottom>
<Typography variant='h6' gutterBottom>
Where do you want to position the notificaiton component?
</Typography>
<Grid container>
Expand All @@ -50,7 +49,7 @@ export function PositionContainer({ state, dispatch }) {
<Grid item xs={4} style={{ padding: '8px' }}>
<Button
fullWidth={true}
variant="outlined"
variant='outlined'
disabled={isSelected}
onClick={() =>
dispatch({
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-nsn",
"version": "1.3.0",
"version": "1.3.1",
"private": false,
"description": "A very lightweight and customizable online network status notification built for react apps.",
"license": "MIT",
Expand Down

0 comments on commit c277259

Please sign in to comment.