Skip to content

Reset whole tutorial #513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add more functionality
Signed-off-by: Shubham Shah <shubhamshahrising@gmail.com>
  • Loading branch information
SavvyShah committed Sep 14, 2021
commit 4d46bba251c576df948d3ef6e5d822758513e48d
8 changes: 6 additions & 2 deletions web-app/src/containers/Tutorial/components/Reset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Button, Dialog, Message } from '@alifd/next'
interface Props {
disabled?: boolean
onReset(): void
warning?: boolean
style?: React.CSSProperties
}

const Reset = (props: Props) => {
Expand All @@ -24,11 +26,13 @@ const Reset = (props: Props) => {
return (
<>
<Button
ghost="dark"
type="secondary"
ghost={props.warning ? false : 'dark'}
type={props.warning ? 'normal' : 'secondary'}
size="medium"
onClick={() => setModalState('confirm')}
disabled={props.disabled}
warning={props.warning}
style={props.style}
>
Reset
</Button>
Expand Down