Skip to content

Commit

Permalink
modified example
Browse files Browse the repository at this point in the history
  • Loading branch information
haradakunihiko committed Aug 6, 2024
1 parent 4a13b24 commit 0e53d6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/ts-react-bootstrap-context/server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var express = require('express');

var app = new express();
var port = 3001
var port = 3000

app.get("/", function(req, res) {
res.sendFile(__dirname + '/index.html')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import Button from 'react-bootstrap/Button'
import FormControl from 'react-bootstrap/FormControl'
import Modal from 'react-bootstrap/Modal'
import { confirmable, ConfirmDialog, ConfirmDialogProps } from 'react-confirm';
import { confirmable, ConfirmDialog } from 'react-confirm';
import { ThemeContext } from '../context/context';


Expand All @@ -16,7 +16,7 @@ export interface Res {
input: string,
}

const ComplexConfirmation: React.FC<ConfirmDialogProps<Props, Res>> = ({
const ComplexConfirmation: ConfirmDialog<Props, Res> = ({
show,
proceed,
dismiss,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import Modal from 'react-bootstrap/Modal'
import Button from 'react-bootstrap/Button'

import { confirmable, ConfirmDialog, ConfirmDialogProps } from 'react-confirm';
import { confirmable, ConfirmDialog } from 'react-confirm';
import { ThemeContext } from '../context/context';

export interface Props {
Expand All @@ -13,7 +13,7 @@ export interface Props {
confirmation?: string;
};

const Confirmation: React.FC<ConfirmDialogProps<Props, boolean>> = (props) => (
const Confirmation: ConfirmDialog<Props, boolean> = (props) => (
<ThemeContext.Consumer>
{
(theme) => (
Expand Down
2 changes: 1 addition & 1 deletion example/ts-react-bootstrap/server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var express = require('express');

var app = new express();
var port = 3001
var port = 3000

app.get("/", function(req, res) {
res.sendFile(__dirname + '/index.html')
Expand Down

0 comments on commit 0e53d6e

Please sign in to comment.