Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/packages/toast/demo.taro.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react'
import Taro from '@tarojs/taro'
import { Toast } from '@nutui/nutui-react-taro'
import Header from '@/sites/components/header'
import { useTranslate } from '@/sites/assets/locale/taro'
import Demo1 from './demos/taro/demo1'
Expand Down Expand Up @@ -38,7 +37,6 @@ const ToastDemo = () => {
<h2>{translated.basic}</h2>
<Demo1 />
<h2>{translated.toastFunction}</h2>
<Toast id="test" />
<Demo2 />

<h2>{translated.toastDuration}</h2>
Expand Down
1 change: 1 addition & 0 deletions src/packages/toast/demos/taro/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Cell, Toast } from '@nutui/nutui-react-taro'
const Demo5 = () => {
return (
<>
<Toast id="test" />
<Cell
title="函数调用"
onClick={() => {
Expand Down
Loading