Skip to content

Commit

Permalink
address the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Aug 11, 2023
1 parent cd66949 commit 53a4525
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bldrs",
"version": "1.0.0-r701",
"version": "1.0.0-r703",
"main": "src/index.jsx",
"license": "MIT",
"homepage": "https://github.com/bldrs-ai/Share",
Expand Down
23 changes: 8 additions & 15 deletions src/Components/DialogTabs.fixture.jsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
import React from 'react'
import Typography from '@mui/material/Typography'
import Box from '@mui/material/Typography'
import FixtureContext from '../FixtureContext'
import DialogTabs from './DialogTabs'
import AttentionIcon from '../assets/icons/Attention.svg'
import debug from '../utils/debug'


const tabList = ['Explore', 'Open', 'Save']
const contentList = [
<Box sx={{textAlign: 'left'}} key={1}>
<Typography variant='h5'>
<p key={1}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</Typography>
</Box>,
<Box sx={{textAlign: 'left'}} key={2}>
<Typography variant='h5'>
</p>,
<p key={2}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Expand All @@ -34,10 +30,8 @@ const contentList = [
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</Typography>
</Box>,
<Box sx={{textAlign: 'left'}} key={2}>
<Typography variant='h5'>
</p>,
<p key={3}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Expand All @@ -48,8 +42,7 @@ const contentList = [
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</Typography>
</Box>,
</p>,
]
const headerTextList = ['Explore Sample Projects', 'Open Project', 'Save Project']
const actionCbList = [
Expand All @@ -66,7 +59,7 @@ export default (
headerText={'Here\'s the thing!'}
isDialogDisplayed={true}
// eslint-disable-next-line no-empty-function
setIsDialogDisplayed={() => {}}
setIsDialogDisplayed={debug().log('setIsDialogDisplayed')}
content={'What you should know about doing the thing'}
actionTitle={'Do do the thing?'}
actionCb={actionCbList}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/DialogTabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {assertDefined} from '../utils/assert'
* @property {React.ReactElement} [actionIcon] Optional icon for the action button
* @return {React.Component}
*/
export default function Dialog({
export default function DialogTab({
icon,
headerTextList = ['loading'],
tabList = ['loading'],
Expand Down

0 comments on commit 53a4525

Please sign in to comment.