Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
0b58d20e
Unverified
Commit
0b58d20e
authored
6 years ago
by
Kyle Doherty
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove extra spacing and clean up component (#8584)
parent
206e66af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/dashboard/components/RemoveFromDashboardModal.jsx
+10
-18
10 additions, 18 deletions
...etabase/dashboard/components/RemoveFromDashboardModal.jsx
with
10 additions
and
18 deletions
frontend/src/metabase/dashboard/components/RemoveFromDashboardModal.jsx
+
10
−
18
View file @
0b58d20e
...
...
@@ -2,13 +2,12 @@ import React, { Component } from "react";
import
PropTypes
from
"
prop-types
"
;
import
{
t
}
from
"
c-3po
"
;
import
MetabaseAnalytics
from
"
metabase/lib/analytics
"
;
import
ModalContent
from
"
metabase/components/ModalContent.jsx
"
;
import
Button
from
"
metabase/components/Button
"
;
import
ModalContent
from
"
metabase/components/ModalContent
"
;
export
default
class
RemoveFromDashboardModal
extends
Component
{
constructor
(
props
,
context
)
{
super
(
props
,
context
);
this
.
state
=
{
deleteCard
:
false
};
}
state
=
{
deleteCard
:
false
};
static
propTypes
=
{
dashcard
:
PropTypes
.
object
.
isRequired
,
...
...
@@ -32,21 +31,14 @@ export default class RemoveFromDashboardModal extends Component {
}
render
()
{
const
{
onClose
}
=
this
.
props
;
return
(
<
ModalContent
title
=
{
t
`Remove this question?`
}
onClose
=
{
()
=>
this
.
props
.
onClose
()
}
>
<
div
className
=
"Form-actions flex-align-right"
>
<
button
className
=
"Button Button"
onClick
=
{
this
.
props
.
onClose
}
>
{
t
`Cancel`
}
</
button
>
<
button
className
=
"Button Button--danger ml2"
onClick
=
{
()
=>
this
.
onRemove
()
}
>
<
ModalContent
title
=
{
t
`Remove this question?`
}
onClose
=
{
()
=>
onClose
()
}
>
<
div
className
=
"flex-align-right"
>
<
Button
onClick
=
{
onClose
}
>
{
t
`Cancel`
}
</
Button
>
<
Button
danger
ml
=
{
2
}
onClick
=
{
()
=>
this
.
onRemove
()
}
>
{
t
`Remove`
}
</
b
utton
>
</
B
utton
>
</
div
>
</
ModalContent
>
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment