Skip to content

Commit

Permalink
fix: updates from PR review from @olizilla
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Feb 1, 2023
1 parent 72d128b commit 06bf422
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 40 deletions.
8 changes: 7 additions & 1 deletion examples/react/playground/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<script>
window.global = window;
</script>
</script>
<style>
html {
/* _no one wants to see times new roman_ - @olizilla */
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
</style>
3 changes: 3 additions & 0 deletions examples/react/playground/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ export const parameters = {
date: /Date$/,
},
},
backgrounds: {
default: 'dark'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ import { AuthenticationSubmitted } from '@w3ui/react'
import '@w3ui/react/src/styles/authenticator.css'

export default {
title: 'w3ui/AuthenticationSubmitted',
title: 'w3ui/Authenticator',
component: AuthenticationSubmitted,
tags: ['autodocs'],
argTypes: {
},
parameters: {
backgrounds: {
default: 'dark'
}
}
}

export const Primary = {
export const Submitted = {
args: {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ export default {
component: Authenticator,
tags: ['autodocs'],
argTypes: {
},
parameters: {
backgrounds: {
default: 'dark'
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ export default {
component: SpaceCreator,
tags: ['autodocs'],
argTypes: {
},
parameters: {
backgrounds: {
default: 'dark'
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ import { SpaceCreatorCreating } from '@w3ui/react'
import '@w3ui/react/src/styles/space-creator.css'

export default {
title: 'w3ui/SpaceCreatorCreating',
title: 'w3ui/SpaceCreator',
component: SpaceCreatorCreating,
tags: ['autodocs'],
argTypes: {
},
parameters: {
backgrounds: {
default: 'dark'
}
}
}

export const Primary = {
export const Creating = {
args: {
}
}
4 changes: 1 addition & 3 deletions examples/react/playground/src/stories/Uploader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export default {
argTypes: {
},
parameters: {
backgrounds: {
default: 'dark'
}

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ import '@w3ui/react/src/styles/uploads-list.css'
export default {
title: 'w3ui/UploadsList',
component: UploadsList,
tags: ['autodocs'],
parameters: {
backgrounds: {
default: 'dark'
}
}
tags: ['autodocs']
}

// More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
Expand Down
2 changes: 1 addition & 1 deletion examples/test/playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"serve": "serve ../../",
"test": "playwright install && playwright test",
"test": "playwright test",
"test:debug": "playwright test --project=chromium --headed"
},
"author": "olzilla",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/SpaceFinder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function SpaceFinder ({ spaces, selected, setSelected, className = '' }:
)

return (
<div className={`${className} w3ui-space-finder-wrapper`}>
<div className={`${className} w3ui-space-finder`}>
<Combobox value={selected} onChange={setSelected} by={(a, b) => a.sameAs(b)}>
<div className='w3ui-space-finder-contents'>
<div className='w3ui-space-finder-closed'>
Expand Down
6 changes: 2 additions & 4 deletions packages/react/src/UploadsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { UploadsList as UploadsListCore } from '@w3ui/react-uploads-list'
function Uploads ({ uploads }: { uploads?: UploadListResult[] }): JSX.Element {
if ((uploads === undefined) || (uploads.length === 0)) {
return (
<>
<div>
<>
<div className='w3-uploads-list-no-uploads'>
No uploads
</div>
Expand All @@ -15,8 +14,7 @@ function Uploads ({ uploads }: { uploads?: UploadListResult[] }): JSX.Element {
Reload
</UploadsListCore.ReloadButton>
</nav>
</div>
</>
</>
)
} else {
return (
Expand Down

0 comments on commit 06bf422

Please sign in to comment.