mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
link fe: navigate to collection post-create
This commit is contained in:
parent
950023e448
commit
a72c74d74d
@ -29,9 +29,9 @@ export class NewScreen extends Component {
|
||||
const { props, state } = this;
|
||||
|
||||
if (prevProps !== props) {
|
||||
let station = `/~${window.ship}/${state.idName}`;
|
||||
if (station in props.resources) {
|
||||
console.log('TODO nav', '/~chat/room' + station);
|
||||
let target = `/${state.idName}`;
|
||||
if (target in props.resources) {
|
||||
props.history.push(`/~link/list/0${target}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -134,7 +134,7 @@ export class NewScreen extends Component {
|
||||
);
|
||||
submit.then(() => {
|
||||
api.setSpinner(false);
|
||||
console.log('TODO nav', `/~link/list/0${appPath}`);
|
||||
props.history.push(`/~link/list/0${appPath}`);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
@ -32,10 +32,8 @@ export class Root extends Component {
|
||||
let comments = !!state.comments ? state.comments : {};
|
||||
const seen = !!state.seen ? state.seen : {};
|
||||
|
||||
//TODO update /join/resource route in contacts
|
||||
const invites = '/link' in state.invites ?
|
||||
state.invites['/link'] : {};
|
||||
console.log('invites', invites);
|
||||
|
||||
return (
|
||||
<BrowserRouter>
|
||||
@ -76,7 +74,9 @@ export class Root extends Component {
|
||||
<NewScreen
|
||||
resources={resources}
|
||||
groups={groups}
|
||||
contacts={contacts}/>
|
||||
contacts={contacts}
|
||||
{...props}
|
||||
/>
|
||||
</Skeleton>
|
||||
);
|
||||
}}/>
|
||||
|
Loading…
Reference in New Issue
Block a user