-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DDW-675] Fix broken Storybook #1402
Changes from all commits
57fd03f
31003b1
a6c2614
4b055f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
import os from 'os'; | ||
import { uniq, upperFirst, get, includes } from 'lodash'; | ||
import { version } from '../../package.json'; | ||
import { stateDirectoryPath } from './config'; | ||
// import { stateDirectoryPath } from './config'; | ||
import type { Environment } from '../common/types/environment.types'; | ||
import { | ||
DEVELOPMENT, | ||
|
@@ -82,7 +82,7 @@ export const environment: Environment = Object.assign( | |
isWindows, | ||
isMacOS, | ||
isLinux, | ||
stateDirectoryPath, | ||
stateDirectoryPath: '', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DeeJayElly I have on purpose used an empty string for the value of state directory. It should be fixed in the scope of this task: https://iohk.myjetbrains.com/youtrack/issue/DDW-676 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
isInSafeMode, | ||
}, | ||
process.env | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DeeJayElly we can not use anything from
./config
as this breaks the storybook.The problem is that within
./config
we usefs
to load theLauncherConfig
which contains all the paths we need (incl. the state path).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import should be removed and we should send the state path to the renderer process through the IPC channel. Similar to how we do for the system locale: https://github.com/input-output-hk/daedalus/blob/develop/source/main/index.js#L142
Network status store should receive this value on app start time and then propagate it to the Network status container and component.