Skip to content

Commit 7f7e7d1

Browse files
22PoojaGaurCompuIves
authored andcommitted
🔨 Refactor, 🧠 Overmind and hacktoberfest | changes done for app/pages/common/Modals/PreferencesModal/Experiments/index.tsx (#2918)
* changes done for app/pages/common/Modals/PreferencesModal/Experiments/index.tsx * added as contributor * Update index.tsx
1 parent 65d2ab2 commit 7f7e7d1

File tree

3 files changed

+23
-54
lines changed

3 files changed

+23
-54
lines changed

‎.all-contributorsrc‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,15 @@
14401440
"contributions": [
14411441
"code"
14421442
]
1443+
},
1444+
{
1445+
"login": "22PoojaGaur",
1446+
"name": "Pooja Gaur",
1447+
"avatar_url": "https://avatars2.githubusercontent.com/u/43316760?v=4",
1448+
"profile": "https://github.com/22PoojaGaur",
1449+
"contributions": [
1450+
"code"
1451+
]
14431452
}
14441453
],
14451454
"contributorsPerLine": 7,

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ Thanks goes to these wonderful people
240240
<td align="center"><a href="https://github.com/milap1296"><img src="https://avatars2.githubusercontent.com/u/19545730?v=4" width="100px;" alt="milap1296"/><br /><sub><b>milap1296</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=milap1296" title="Code">💻</a></td>
241241
<td align="center"><a href="http://yevhenorlov.com"><img src="https://avatars2.githubusercontent.com/u/17388747?v=4" width="100px;" alt="yevhen orlov"/><br /><sub><b>yevhen orlov</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=yevhenorlov" title="Code">💻</a></td>
242242
<td align="center"><a href="https://github.com/NileshPatel17"><img src="https://avatars2.githubusercontent.com/u/27020381?v=4" width="100px;" alt="Nilesh Patel"/><br /><sub><b>Nilesh Patel</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=NileshPatel17" title="Code">💻</a></td>
243+
<td align="center"><a href="https://github.com/22PoojaGaur"><img src="https://avatars2.githubusercontent.com/u/43316760?v=4" width="100px;" alt="Pooja Gaur"/><br /><sub><b>Pooja Gaur</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=22PoojaGaur" title="Code">💻</a></td>
243244
</tr>
244245
</table>
245246

246247
<!-- markdownlint-enable -->
247248
<!-- prettier-ignore-end -->
248-
249249
<!-- ALL-CONTRIBUTORS-LIST:END -->
250250

251251
## Backers

‎packages/app/src/app/pages/common/Modals/PreferencesModal/Experiments/index.tsx‎

Lines changed: 13 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -7,57 +7,17 @@ import {
77
PreferenceContainer,
88
} from '../elements';
99

10-
// const windowWithOvermind: {
11-
// useOvermind?: (val?: boolean) => 'true' | null;
12-
// } = window as any;
10+
export const Experiments: React.FunctionComponent = () => (
11+
<div>
12+
<Title>Experiments</Title>
1313

14-
export function Experiments() {
15-
// const bindValue = name => ({
16-
// value: store.preferences.settings[name],
17-
// setValue: value =>
18-
// signals.preferences.settingChanged({
19-
// name,
20-
// value,
21-
// }),
22-
// });
23-
24-
// const [usingOvermind, setUsingOvermind] = React.useState(
25-
// typeof windowWithOvermind.useOvermind !== 'undefined' &&
26-
// windowWithOvermind.useOvermind() === 'true'
27-
// );
28-
29-
return (
30-
<div>
31-
<Title>Experiments</Title>
32-
33-
<SubContainer>
34-
<PreferenceContainer>
35-
<SubDescription>
36-
There are no experiments running at the moment. Stay tuned for new
37-
experiments!
38-
</SubDescription>
39-
{/*
40-
<PaddedPreference
41-
title="Use Overmind"
42-
type="boolean"
43-
value={usingOvermind}
44-
setValue={val => {
45-
windowWithOvermind.useOvermind(val);
46-
setUsingOvermind(val);
47-
track('Overmind Enabled', {
48-
enabled: val,
49-
});
50-
}}
51-
/>
52-
<SubDescription>
53-
Use Overmind (an evolution of our current state management) as the
54-
state management
55-
</SubDescription>
56-
*/}
57-
</PreferenceContainer>
58-
</SubContainer>
59-
</div>
60-
);
61-
}
62-
63-
// export default inject('store', 'signals')(observer(Experiments));
14+
<SubContainer>
15+
<PreferenceContainer>
16+
<SubDescription>
17+
There are no experiments running at the moment. Stay tuned for new
18+
experiments!
19+
</SubDescription>
20+
</PreferenceContainer>
21+
</SubContainer>
22+
</div>
23+
);

0 commit comments

Comments
 (0)