Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamkantival committed Mar 29, 2020
1 parent 308a515 commit 458af1c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
- Listens to updates in scrollHeight of scroll container( due to introduction of new data), and fetches more data if avaiable data does not fill updated scroll container.
- And yes of-course, fetches more data when user scrolls to a given threshold.
* `PlatformPusherNotifications` : Central hub for complete application to display any toast notifications to user. Managed by Context API. Supports following features-
- Diplays a max of 5 toasts at a time. All the rest notifications are kept in stack, their timer starts only when they appear to the user.
- Individual timeout can be provided when pushing a notification.
- Notification toast's timer pause on hover.
- Diplays a max of 5 toasts at a time. Overflowing notifications are kept in stack, their timer starts only when they appear to the user.
- Custom timeout can be provided when pushing a notification.
- Notification toast's timer pauses on hover.
- Notification can be expired early by clicking on the toast.
* `PausableTimer` : A customised wrapper over 'setTimeout' that powers each individual toast notification. Supports following functionality over and above 'setTimeout'
* `PausableTimer` : A customised wrapper over 'setTimeout' that powers toast notification under the hood. Supports following functionality over and above 'setTimeout'
- Option to start timer immediately or when invoked manually.
- Pause/Resume timer as required.
- Finish the timer early when required.
Expand Down
5 changes: 0 additions & 5 deletions src/setupTests.ts

This file was deleted.

10 changes: 6 additions & 4 deletions src/styles/mixins/index.ts → src/styles/mixins.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//typeDefs
import { FlexContainerOptions } from './interfaces';

export function centerToParent(): string {
return `
position: absolute;
Expand All @@ -27,7 +24,12 @@ export function flexContainer({
alignItems = 'flex-start',
justifyContent = 'flex-start',
flexWrap = 'nowrap',
}: FlexContainerOptions) {
}: {
flexDirection?: 'row' | 'column';
alignItems?: 'center' | 'flex-start' | 'flex-end' | 'stretch';
justifyContent?: 'flex-start' | 'center' | 'space-around' | 'space-between' | 'flex-end';
flexWrap?: 'wrap' | 'nowrap';
}) {
return `
display: flex;
flex-direction: ${flexDirection};
Expand Down
6 changes: 0 additions & 6 deletions src/styles/mixins/interfaces.ts

This file was deleted.

0 comments on commit 458af1c

Please sign in to comment.