From 1f9bfa0dc328f889b01f724efa4606597206028c Mon Sep 17 00:00:00 2001 From: Fadi Khadra Date: Mon, 9 Dec 2024 19:09:57 -0500 Subject: [PATCH] chore: remove scss reference --- playground/src/components/App.tsx | 59 ++++++------------------------- 1 file changed, 11 insertions(+), 48 deletions(-) diff --git a/playground/src/components/App.tsx b/playground/src/components/App.tsx index d6f2cdfc..acde3d51 100644 --- a/playground/src/components/App.tsx +++ b/playground/src/components/App.tsx @@ -13,19 +13,13 @@ import { ToastCode, ToastCodeProps } from './ToastCode'; import { flags, positions, themes, transitions, typs } from './constants'; import React from 'react'; -import '../../../scss/main.scss'; -import { Id, ToastContainer, toast } from '../../../src/index'; +import { Id, toast, ToastContainer } from '../../../src'; import { defaultProps } from '../../../src/components/ToastContainer'; // Attach to window. Can be useful to debug // @ts-ignore window.toast = toast; -// const animateCss = cssTransition({ -// enter: 'animate__animated animate__bounceIn', -// exit: 'animate__animated animate__bounceOut' -// }); - class App extends React.Component { state = App.getDefaultState(); toastId: Id; @@ -75,8 +69,7 @@ class App extends React.Component { ); }; - updateToast = () => - toast.update(this.toastId, { progress: this.state.progress }); + updateToast = () => toast.update(this.toastId, { progress: this.state.progress }); handleAutoCloseDelay = e => this.setState({ @@ -101,10 +94,7 @@ class App extends React.Component { handleRadioOrSelect = e => this.setState({ - [e.target.name]: - e.target.name === 'limit' - ? parseInt(e.target.value, 10) - : e.target.value + [e.target.name]: e.target.name === 'limit' ? parseInt(e.target.value, 10) : e.target.value }); toggleCheckbox = e => @@ -115,12 +105,7 @@ class App extends React.Component { renderFlags() { return flags.map(({ id, label }) => (
  • - +
  • )); } @@ -131,10 +116,9 @@ class App extends React.Component {

    - By default, all toasts will inherit ToastContainer's props. Props - defined on toast supersede ToastContainer's props. Props marked with - * can only be set on the ToastContainer. The demo is not exhaustive, - check the repo for more! + By default, all toasts will inherit ToastContainer's props. Props defined on toast supersede + ToastContainer's props. Props marked with * can only be set on the ToastContainer. The demo is not + exhaustive, check the repo for more!

    @@ -151,12 +135,7 @@ class App extends React.Component {

    Type

      - +
    @@ -191,12 +170,7 @@ class App extends React.Component {