Skip to content

Commit

Permalink
adding notifications panel (#16)
Browse files Browse the repository at this point in the history
* adding notifications panel

* assigning comments

* mode misspelling
  • Loading branch information
filipeotero authored Aug 9, 2022
1 parent b29044d commit 8433ae0
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 11 deletions.
42 changes: 42 additions & 0 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dynamods/notifications-center",
"version": "0.0.7",
"version": "0.0.8",
"description": "Notification center maintained by Dynamo Team@Autodesk",
"author": "Autodesk Inc.",
"license": "MIT",
Expand Down Expand Up @@ -28,10 +28,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@filipeop/notifications-panel": "^0.0.2",
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@hig/notifications-flyout": "^3.2.0",
"@hig/timestamp": "^2.1.0",
"axios": "^0.27.2",
"babel-loader": "^8.2.5",
Expand Down
16 changes: 7 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import './App.css';
import axios from 'axios';
import React, { useEffect, useState } from 'react';
import NotificationsFlyout, { anchorPoints } from '@hig/notifications-flyout';
import NotificationsPanel from '@filipeop/notifications-panel';
import Timestamp from '@hig/timestamp';
import PropTypes from 'prop-types'

function App() {
let notificationData = [];
Expand Down Expand Up @@ -34,14 +35,11 @@ function App() {
}

return (
<div className="App">
<NotificationsFlyout class="NotificationsFlyout"
heading="Notifications"
indicatorTitle="View application alerts"
anchorPoint={anchorPoints.TOP_LEFT}
notifications={notificationData}>
</NotificationsFlyout>
</div>
<NotificationsPanel class="NotificationsFlyout"
heading="Notifications"
indicatorTitle="View application alerts"
notifications={notificationData}>
</NotificationsPanel>
);
}

Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
mode: 'none',
entry: {
app: './src/index.js',
},
Expand Down

0 comments on commit 8433ae0

Please sign in to comment.