forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Glitch] Change design of compose form in web UI
Port 6936e5a to glitch-soc Co-authored-by: Claire <[email protected]> Signed-off-by: Claire <[email protected]>
- Loading branch information
1 parent
7586d43
commit 9c10aaa
Showing
53 changed files
with
1,490 additions
and
1,771 deletions.
There are no files selected for viewing
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
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
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
40 changes: 18 additions & 22 deletions
40
app/javascript/flavours/glitch/containers/compose_container.jsx
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 |
---|---|---|
@@ -1,31 +1,27 @@ | ||
import { PureComponent } from 'react'; | ||
|
||
import { Provider } from 'react-redux'; | ||
|
||
import { fetchCustomEmojis } from '../actions/custom_emojis'; | ||
import { hydrateStore } from '../actions/store'; | ||
import Compose from '../features/standalone/compose'; | ||
import initialState from '../initial_state'; | ||
import { IntlProvider } from '../locales'; | ||
import { store } from '../store'; | ||
|
||
import { fetchCustomEmojis } from 'flavours/glitch/actions/custom_emojis'; | ||
import { hydrateStore } from 'flavours/glitch/actions/store'; | ||
import { Router } from 'flavours/glitch/components/router'; | ||
import Compose from 'flavours/glitch/features/standalone/compose'; | ||
import initialState from 'flavours/glitch/initial_state'; | ||
import { IntlProvider } from 'flavours/glitch/locales'; | ||
import { store } from 'flavours/glitch/store'; | ||
|
||
if (initialState) { | ||
store.dispatch(hydrateStore(initialState)); | ||
} | ||
|
||
store.dispatch(fetchCustomEmojis()); | ||
|
||
export default class ComposeContainer extends PureComponent { | ||
|
||
render () { | ||
return ( | ||
<IntlProvider> | ||
<Provider store={store}> | ||
<Compose /> | ||
</Provider> | ||
</IntlProvider> | ||
); | ||
} | ||
|
||
} | ||
const ComposeContainer = () => ( | ||
<IntlProvider> | ||
<Provider store={store}> | ||
<Router> | ||
<Compose /> | ||
</Router> | ||
</Provider> | ||
</IntlProvider> | ||
); | ||
|
||
export default ComposeContainer; |
Oops, something went wrong.