-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1280 from HerrEmil/frame-button-interactions
Frame button interaction changes
- Loading branch information
Showing
22 changed files
with
336 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright (c) "Neo4j" | ||
* Neo4j Sweden AB [http://neo4j.com] | ||
* | ||
* This file is part of Neo4j. | ||
* | ||
* Neo4j is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import React from 'react' | ||
import { Button, Modal } from 'semantic-ui-react' | ||
|
||
interface ConfirmationDialogProps { | ||
cancelLabel?: string | ||
confirmLabel?: string | ||
onClose: () => void | ||
onConfirm: () => void | ||
open: boolean | ||
} | ||
|
||
function ConfirmationDialog({ | ||
cancelLabel = 'Cancel', | ||
children, | ||
confirmLabel = 'OK', | ||
onClose, | ||
onConfirm, | ||
open | ||
}: React.PropsWithChildren<ConfirmationDialogProps>): JSX.Element { | ||
return ( | ||
<Modal | ||
closeOnEscape={true} | ||
onClose={() => onClose()} | ||
open={open} | ||
size="tiny" | ||
style={{ fontSize: '16px', lineHeight: '1.5' }} | ||
> | ||
<Modal.Content>{children}</Modal.Content> | ||
<Modal.Actions style={{ background: 'white', border: 'none' }}> | ||
<Button basic color="grey" onClick={() => onClose()}> | ||
{cancelLabel} | ||
</Button> | ||
<Button | ||
color="twitter" | ||
content={confirmLabel} | ||
onClick={() => onConfirm()} | ||
/> | ||
</Modal.Actions> | ||
</Modal> | ||
) | ||
} | ||
|
||
export default ConfirmationDialog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,6 @@ | |
width: 100%; | ||
height: 100%; | ||
} | ||
a { | ||
color: #68bdf4 !important; | ||
} | ||
</style> | ||
<link | ||
rel="apple-touch-icon" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.