-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add stories for some redesigned components
- Loading branch information
Showing
15 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
Binary file added
BIN
+17.4 KB
.loki/reference/chrome_iphone7_entities_Comment_CommentItem_Loading_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.1 KB
.loki/reference/chrome_iphone7_entities_Comment_CommentItem_Normal_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.6 KB
.loki/reference/chrome_iphone7_entities_ProfileCard_Loading_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+128 KB
.loki/reference/chrome_iphone7_entities_ProfileCard_Primary_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.1 KB
.loki/reference/chrome_iphone7_entities_ProfileCard_With_Error_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.1 KB
.loki/reference/chrome_laptop_entities_Comment_CommentItem_Loading_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.75 KB
.loki/reference/chrome_laptop_entities_Comment_CommentItem_Normal_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.3 KB
.loki/reference/chrome_laptop_entities_ProfileCard_Loading_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.3 KB
.loki/reference/chrome_laptop_entities_ProfileCard_Primary_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.1 KB
.loki/reference/chrome_laptop_entities_ProfileCard_With_Error_Redesigned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/shared/config/storybook/FeaturesFlagsDecorator/FeaturesFlagsDecorator.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Story } from '@storybook/react'; | ||
|
||
import { FeatureFlags } from '@/shared/types/featureFlags'; | ||
import { setFeatureFlags } from '@/shared/lib/features'; | ||
|
||
export const FeaturesFlagsDecorator = (features: FeatureFlags) => (StoryComponent: Story) => { | ||
setFeatureFlags(features); | ||
|
||
return <StoryComponent />; | ||
}; |
15 changes: 15 additions & 0 deletions
15
src/shared/config/storybook/NewDesignDecorator/NewDesignDecorator.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Story } from '@storybook/react'; | ||
|
||
import { setFeatureFlags } from '@/shared/lib/features'; | ||
import { getAllFeatureFlags } from '@/shared/lib/features/lib/setGetFeatures'; | ||
|
||
export const NewDesignDecorator = (StoryComponent: Story) => { | ||
setFeatureFlags({ ...getAllFeatureFlags(), isAppRedesigned: true }); | ||
document.body.className += ' redesigned'; | ||
|
||
return ( | ||
<div className="app_redesigned"> | ||
<StoryComponent /> | ||
</div> | ||
); | ||
}; |