* Add terms of service * Add i18n * Fix test * Address feedback * Address ux feedback * Update texts * Avoid Review to show on top of ToS Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
19 lines
627 B
TypeScript
19 lines
627 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {withDatabase} from '@nozbe/watermelondb/DatabaseProvider';
|
|
import withObservables from '@nozbe/with-observables';
|
|
|
|
import {observeConfigValue} from '@queries/servers/system';
|
|
|
|
import TermsOfService from './terms_of_service';
|
|
|
|
import type {WithDatabaseArgs} from '@typings/database/database';
|
|
|
|
const enhanced = withObservables([], ({database}: WithDatabaseArgs) => {
|
|
return {
|
|
siteName: observeConfigValue(database, 'SiteName'),
|
|
};
|
|
});
|
|
|
|
export default withDatabase(enhanced(TermsOfService));
|