@dorgtech/daocomponents
Version:
Componentizing [DAOstack's client library](https://github.com/daostack/client), enabling easier React application integration. The hope is to be able to turn any app into a DAO enabled dApp by adding ~2 components.
19 lines (15 loc) • 365 B
text/typescript
export class LoggingConfig
{
constructor (
public enabled: boolean
) { }
public static get Current() {
if (!this._current) {
this._current = this.OnConfig;
}
return this._current;
}
public static OnConfig = new LoggingConfig(true);
public static OffConfig = new LoggingConfig(false);
private static _current: LoggingConfig;
}