Skip to content

Commit

Permalink
Merge pull request #15 from hubtype/examples/fix-live-demos
Browse files Browse the repository at this point in the history
Fixing live demos
  • Loading branch information
Iru89 authored Feb 21, 2024
2 parents 45d23da + a2b297b commit 6fd1da2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ and select it from the selector.
</a>
</td>
<td align="center">
<a href="https://botonic.io/examples/booking-platform/">🔗</a>
<a href="https://botonic-example-booking-platform.netlify.app/">🔗</a>
</td>
<td>
This example shows you how to make a reservation in a hotel using a
Expand Down Expand Up @@ -54,7 +54,7 @@ and select it from the selector.
</a>
</td>
<td align="center">
<a href="https://botonic.io/examples/telco-offers/">🔗</a>
<a href="botonic-example-telco-offers.netlify.app">🔗</a>
</td>
<td>
This example shows you a multi-language conversation flow to acquire an Internet or a cell phone rate using buttons and replies.
Expand Down
Binary file added booking-platform/botonic_bundle.zip
Binary file not shown.
1 change: 1 addition & 0 deletions booking-platform/src/assets/burger-menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions booking-platform/src/assets/check-reservation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions booking-platform/src/assets/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 1 addition & 11 deletions booking-platform/src/assets/home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion booking-platform/src/webchat/custom-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import styled from 'styled-components'
import { IconContainer } from './common'
import Send from '../assets/send.svg'
import BurgerMenu from '../assets/burger-menu.svg'
import { staticAsset } from '@botonic/react'

export const Icon = styled.img`
Expand All @@ -16,6 +17,6 @@ export const CustomSendButton = () => (

export const CustomMenuButton = () => (
<IconContainer>
<Icon src='https://image.flaticon.com/icons/svg/2948/2948037.svg' />
<Icon src={staticAsset(BurgerMenu)} />
</IconContainer>
)
6 changes: 4 additions & 2 deletions booking-platform/src/webchat/custom-persistentMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import styled from 'styled-components'
import { WebchatContext } from '@botonic/react'
import { CustomMenuButton } from './custom-persistentMenu-button'
import Home from '../assets/home.svg'
import CheckReservation from "../assets/check-reservation.svg"
import Close from "../assets/close.svg"
import { staticAsset } from '@botonic/react'

const ButtonsContainer = styled.div`
Expand All @@ -20,7 +22,7 @@ export const CustomPersistentMenu = ({ onClick, options }) => {
<CustomMenuButton
label={options[0].label}
webview={options[0].webview}
img='https://www.flaticon.com/svg/static/icons/svg/14/14934.svg'
img={staticAsset(CheckReservation)}
/>
<CustomMenuButton
label={options[1].label}
Expand All @@ -30,7 +32,7 @@ export const CustomPersistentMenu = ({ onClick, options }) => {
<CustomMenuButton
label={options[2].closeLabel}
onClick={onClick}
img='https://www.flaticon.com/svg/static/icons/svg/67/67345.svg'
img={staticAsset(Close)}
/>
</ButtonsContainer>
)
Expand Down

0 comments on commit 6fd1da2

Please sign in to comment.