Skip to content

Commit

Permalink
refactor: apply lint and snapshot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
booc0mtaco committed Aug 7, 2023
1 parent cca5eac commit 9480a8a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .storybook/components/ColorList/ColorList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ColorList = (props: Props) => (
<div className="flex flex-col gap-4">
{props.listItems.map(function (listItem) {
return (
<div className="bg-neutral-default flex gap-4 p-4" key={listItem.name}>
<div className="flex gap-4 bg-neutral-default p-4" key={listItem.name}>
<div className="flex w-80 flex-col gap-1">
<label
className={styles['color-list__label']}
Expand Down
16 changes: 8 additions & 8 deletions src/components/DragDrop/DragDrop.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const Default: StoryObj<Args> = {
itemIds: ['item-1', 'item-2', 'item-3', 'item-4', 'item-5'],
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle flex items-center gap-4 px-4 py-2">
<div className="flex items-center gap-4 bg-neutral-subtle px-4 py-2">
<Heading as="h5" size="h5">
Available Projects
</Heading>
Expand Down Expand Up @@ -289,7 +289,7 @@ export const Default: StoryObj<Args> = {
),
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle flex items-center gap-4 px-4 py-2">
<div className="flex items-center gap-4 bg-neutral-subtle px-4 py-2">
<Heading as="h5" size="h5">
Selected Projects
</Heading>
Expand Down Expand Up @@ -356,7 +356,7 @@ export const HoveredHandle: StoryObj<Args> = {
itemIds: ['item-1', 'item-2', 'item-3', 'item-4', 'item-5'],
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle flex items-center gap-4 px-4 py-2">
<div className="flex items-center gap-4 bg-neutral-subtle px-4 py-2">
<Heading as="h5" size="h5">
Available Projects
</Heading>
Expand Down Expand Up @@ -483,7 +483,7 @@ export const HoveredHandle: StoryObj<Args> = {
),
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle flex items-center gap-4 px-4 py-2">
<div className="flex items-center gap-4 bg-neutral-subtle px-4 py-2">
<Heading as="h5" size="h5">
Selected Projects
</Heading>
Expand Down Expand Up @@ -511,7 +511,7 @@ const InteractiveDragDrop = () => {
itemIds: ['item-1', 'item-2', 'item-3', 'item-4', 'item-5'],
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle mb-4 flex items-center gap-4">
<div className="mb-4 flex items-center gap-4 bg-neutral-subtle">
<Heading as="h2" size="title-sm" variant="neutral-strong">
Available projects
</Heading>
Expand All @@ -532,7 +532,7 @@ const InteractiveDragDrop = () => {
itemIds: [],
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle mb-4 flex items-center gap-4">
<div className="mb-4 flex items-center gap-4 bg-neutral-subtle">
<Heading as="h2" size="title-sm" variant="neutral-strong">
Planned projects
</Heading>
Expand All @@ -553,7 +553,7 @@ const InteractiveDragDrop = () => {
itemIds: [],
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle mb-4 flex items-center gap-4">
<div className="mb-4 flex items-center gap-4 bg-neutral-subtle">
<Heading as="h2" size="title-sm" variant="neutral-strong">
Planned projects
</Heading>
Expand All @@ -574,7 +574,7 @@ const InteractiveDragDrop = () => {
itemIds: [],
header: (
<DragDrop.ContainerHeader>
<div className="bg-neutral-subtle mb-4 flex items-center gap-4 p-0">
<div className="mb-4 flex items-center gap-4 bg-neutral-subtle p-0">
<Heading as="h2" size="title-sm" variant="neutral-strong">
Planned projects
</Heading>
Expand Down
16 changes: 8 additions & 8 deletions src/components/DragDrop/__snapshots__/DragDrop.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`<DragDrop /> Default story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle flex items-center gap-4 px-4 py-2"
class="flex items-center gap-4 bg-neutral-subtle px-4 py-2"
>
<h5
class="heading heading--size-h5"
Expand Down Expand Up @@ -243,7 +243,7 @@ exports[`<DragDrop /> Default story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle flex items-center gap-4 px-4 py-2"
class="flex items-center gap-4 bg-neutral-subtle px-4 py-2"
>
<h5
class="heading heading--size-h5"
Expand Down Expand Up @@ -474,7 +474,7 @@ exports[`<DragDrop /> HoveredHandle story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle flex items-center gap-4 px-4 py-2"
class="flex items-center gap-4 bg-neutral-subtle px-4 py-2"
>
<h5
class="heading heading--size-h5"
Expand Down Expand Up @@ -700,7 +700,7 @@ exports[`<DragDrop /> HoveredHandle story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle flex items-center gap-4 px-4 py-2"
class="flex items-center gap-4 bg-neutral-subtle px-4 py-2"
>
<h5
class="heading heading--size-h5"
Expand Down Expand Up @@ -871,7 +871,7 @@ exports[`<DragDrop /> Interactive story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle mb-4 flex items-center gap-4"
class="mb-4 flex items-center gap-4 bg-neutral-subtle"
>
<h2
class="heading heading--size-title-sm heading--neutral-strong"
Expand Down Expand Up @@ -1119,7 +1119,7 @@ exports[`<DragDrop /> Interactive story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle mb-4 flex items-center gap-4"
class="mb-4 flex items-center gap-4 bg-neutral-subtle"
>
<h2
class="heading heading--size-title-sm heading--neutral-strong"
Expand Down Expand Up @@ -1166,7 +1166,7 @@ exports[`<DragDrop /> Interactive story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle mb-4 flex items-center gap-4"
class="mb-4 flex items-center gap-4 bg-neutral-subtle"
>
<h2
class="heading heading--size-title-sm heading--neutral-strong"
Expand Down Expand Up @@ -1213,7 +1213,7 @@ exports[`<DragDrop /> Interactive story renders snapshot 1`] = `
>
<header>
<div
class="bg-neutral-subtle mb-4 flex items-center gap-4 p-0"
class="mb-4 flex items-center gap-4 bg-neutral-subtle p-0"
>
<h2
class="heading heading--size-title-sm heading--neutral-strong"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Slider/Slider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export const WithVisualLabel: StoryObj<Args> = {
id="slider-label"
text="Mood Slider"
/>
<div className="text-h1 w-1/2 py-4 text-center">
<div className="w-1/2 py-4 text-center text-h1">
{moodData.map((mood) => {
return (
sliderValue === mood.value && (
Expand Down Expand Up @@ -380,7 +380,7 @@ export const WithMultipleVisualLabels: StoryObj<Args> = {
id="slider-label"
text="Mood Slider"
/>
<div className="text-h1 flex w-1/2 justify-between py-4 text-center">
<div className="flex w-1/2 justify-between py-4 text-center text-h1">
{moodData.map((mood, index) => {
return (
<div
Expand Down
4 changes: 2 additions & 2 deletions src/components/Slider/__snapshots__/Slider.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ exports[`<Slider /> WithMultipleVisualLabels story renders snapshot 1`] = `
</label>
<div
class="text-h1 flex w-1/2 justify-between py-4 text-center"
class="flex w-1/2 justify-between py-4 text-center text-h1"
>
<div
class=""
Expand Down Expand Up @@ -708,7 +708,7 @@ exports[`<Slider /> WithVisualLabel story renders snapshot 1`] = `
</label>
<div
class="text-h1 w-1/2 py-4 text-center"
class="w-1/2 py-4 text-center text-h1"
>
<span>
😐
Expand Down

0 comments on commit 9480a8a

Please sign in to comment.