Skip to content

Commit

Permalink
[web] - fixes (#599)
Browse files Browse the repository at this point in the history
* [web] - fix copy DAO address

* [web] - fix toast z-index with portal
  • Loading branch information
Roman Matusevich authored Oct 3, 2023
1 parent bb46a0d commit d3fb7ee
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 16 deletions.
6 changes: 5 additions & 1 deletion web/src/v1.0.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -111,7 +112,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v1.0.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const DaoLayout = () => {
</span>
</h1>
<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down
6 changes: 5 additions & 1 deletion web/src/v2.0.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -122,7 +123,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v2.0.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DaoLayout = () => {
<DaoSummary className="my-2 text-sm" />

<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down
6 changes: 5 additions & 1 deletion web/src/v3.0.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -122,7 +123,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v3.0.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DaoLayout = () => {
<DaoSummary className="my-2 text-sm" />

<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down
6 changes: 5 additions & 1 deletion web/src/v4.0.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -122,7 +123,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v4.0.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DaoLayout = () => {
<DaoSummary className="my-2 text-sm" />

<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down
6 changes: 5 additions & 1 deletion web/src/v5.0.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -122,7 +123,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v5.0.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DaoLayout = () => {
<DaoSummary className="my-2 text-sm" />

<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down
6 changes: 5 additions & 1 deletion web/src/v5.1.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -122,7 +123,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v5.1.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DaoLayout = () => {
<DaoSummary className="my-2 text-sm" />

<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down
6 changes: 5 additions & 1 deletion web/src/v6.0.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -122,7 +123,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v6.0.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DaoLayout = () => {
<DaoSummary className="my-2 text-sm" />

<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down
6 changes: 5 additions & 1 deletion web/src/v6.1.0/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { createPortal } from 'react-dom'
import { ToastContainer } from 'react-toastify'
import Header from './components/Header'
import { ToastOptionsShortcuts } from '../helpers'
Expand Down Expand Up @@ -131,7 +132,10 @@ const App = () => {
</main>
<footer className="footer"></footer>

<ToastContainer {...ToastOptionsShortcuts.Default} />
{createPortal(
<ToastContainer {...ToastOptionsShortcuts.Default} />,
document.body,
)}
<ToastStatus />
<BaseModal />
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/v6.1.0/pages/DaoLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const DaoLayout = () => {
<DaoSummary className="my-2 text-sm" />

<CopyClipboard
className="text-xs text-gray-7c8db5"
className="w-fit text-xs text-gray-7c8db5"
label={
<span
data-tooltip-id="common-tip"
Expand Down

0 comments on commit d3fb7ee

Please sign in to comment.